warning removed
This commit is contained in:
parent
73cba3adc7
commit
7738b1ea1f
|
@ -1,11 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
|
||||
<wb-module deploy-name="common-smartgears-app">
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/test/java"/>
|
||||
|
||||
</wb-module>
|
||||
|
||||
</project-modules>
|
||||
|
|
|
@ -79,7 +79,7 @@ public class OfflineObserver implements AppManagerObserver {
|
|||
|
||||
@Override
|
||||
public ApplicationManager call() throws Exception {
|
||||
ApplicationManager manager = managerClass.newInstance();
|
||||
ApplicationManager manager = managerClass.getDeclaredConstructor().newInstance();
|
||||
try {
|
||||
log.info("calling on onInit of {}",manager.getClass().getCanonicalName());
|
||||
manager.onInit();
|
||||
|
|
|
@ -130,7 +130,7 @@ public class OnlineObserver implements AppManagerObserver{
|
|||
SecretManagerProvider.instance.set(secret);
|
||||
ApplicationManager manager = null;
|
||||
try {
|
||||
manager = managerClass.newInstance();
|
||||
manager = managerClass.getDeclaredConstructor().newInstance();
|
||||
log.info("calling on onInit on manager {} with secret {}",manager.getClass().getCanonicalName(),secret);
|
||||
manager.onInit();
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue