solved a bug on OnlineObserver
This commit is contained in:
parent
170429618f
commit
28db5c0522
|
@ -66,6 +66,7 @@ public class ContextListener implements ServletContextListener {
|
|||
|
||||
Set<Class<?>> toInitialize = reflection.getTypesAnnotatedWith(ManagedBy.class);
|
||||
*/
|
||||
log.debug("annotated managed are {} for {}", annotatedManaged.size(),context.name());
|
||||
Set<Class<? extends ApplicationManager>> managers = new HashSet<Class<? extends ApplicationManager>>();
|
||||
for (Class<?> initializer: annotatedManaged ){
|
||||
ManagedBy manageBy = initializer.getAnnotation(ManagedBy.class);
|
||||
|
@ -79,6 +80,9 @@ public class ContextListener implements ServletContextListener {
|
|||
observer.register();
|
||||
context.events().subscribe(observer);
|
||||
}
|
||||
else {
|
||||
log.info("no application managers faound for {}",context.name());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -149,7 +149,7 @@ public class OnlineObserver implements AppManagerObserver{
|
|||
|
||||
public ShutDownAppManager(Secret secret, Future<ApplicationManager> appManager){
|
||||
this.appManager = appManager;
|
||||
|
||||
this.secret = secret;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue