-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ breaking the dependency between job-engine and rest-api by moving …
…common code in commons-rest Signed-off-by: dseurotech <davide.salvador@eurotech.com>
- Loading branch information
1 parent
6d26658
commit aee38d0
Showing
104 changed files
with
2,779 additions
and
1,849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
Eurotech - initial API and implementation | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>kapua-commons-rest</artifactId> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<version>2.1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>kapua-commons-rest-jersey</artifactId> | ||
<dependencies> | ||
<!-- re-declare as provided as our web container will provide this --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- <!– Apache Shiro security framework –>--> | ||
<!-- <dependency>--> | ||
<!-- <groupId>org.apache.shiro</groupId>--> | ||
<!-- <artifactId>shiro-web</artifactId>--> | ||
<!-- </dependency>--> | ||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.core</groupId> | ||
<artifactId>jersey-server</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Moxy for object marshalling unmarshalling --> | ||
<dependency> | ||
<groupId>org.glassfish.jersey.media</groupId> | ||
<artifactId>jersey-media-moxy</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-service-api</artifactId> | ||
</dependency> | ||
|
||
<!-- Test dependencies --> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-locator-guice</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-qa-markers</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-commons</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...jersey/src/main/java/org/eclipse/kapua/commons/rest/jersey/KapuaCommonApiCoreSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.rest.jersey; | ||
|
||
import javax.inject.Inject; | ||
|
||
import org.eclipse.kapua.commons.setting.AbstractKapuaSetting; | ||
|
||
/** | ||
* API setting implementation. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public class KapuaCommonApiCoreSetting extends AbstractKapuaSetting<KapuaCommonApiCoreSettingKeys> { | ||
|
||
private static final String API_SETTING_RESOURCE = "kapua-api-core-settings.properties"; | ||
|
||
/** | ||
* Construct a new api setting reading settings from {@link KapuaCommonApiCoreSetting#API_SETTING_RESOURCE} | ||
*/ | ||
@Inject | ||
public KapuaCommonApiCoreSetting() { | ||
super(API_SETTING_RESOURCE); | ||
} | ||
} |
Oops, something went wrong.