solved a bug on OnlineObserver

This commit is contained in:
lucio 2024-02-22 15:41:40 +01:00
parent 170429618f
commit 28db5c0522
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -149,7 +149,7 @@ public class OnlineObserver implements AppManagerObserver{
public ShutDownAppManager(Secret secret, Future<ApplicationManager> appManager){
this.appManager = appManager;
this.secret = secret;
}
@Override