@Test public void activate() { install(); mgr.activate(APP_ID); assertEquals("incorrect app state", ACTIVE, mgr.getState(APP_ID)); assertFalse("preDeactivate hook wrongly called", deactivated); }
@Activate public void activate() { eventDispatcher.addSink(ApplicationEvent.class, listenerRegistry); initializing = true; store.setDelegate(delegate); initializing = false; log.info("Started"); }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Activate public void activate() { eventDispatcher.addSink(ApplicationEvent.class, listenerRegistry); initializing = true; store.setDelegate(delegate); initializing = false; log.info("Started"); } }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Activate public void activate() { eventDispatcher.addSink(ApplicationEvent.class, listenerRegistry); initializing = true; store.setDelegate(delegate); initializing = false; log.info("Started"); }  }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Activate public void activate() { eventDispatcher.addSink(ApplicationEvent.class, listenerRegistry); initializing = true; store.setDelegate(delegate); initializing = false; log.info("Started"); }  @Activate void activate(); @Deactivate void deactivate(); @Override Set<Application> getApplications(); @Override ApplicationId getId(String name); @Override Application getApplication(ApplicationId appId); @Override ApplicationState getState(ApplicationId appId); @Override Set<Permission> getPermissions(ApplicationId appId); @Override void registerDeactivateHook(ApplicationId appId, Runnable hook); @Override Application install(InputStream appDescStream); @Override void uninstall(ApplicationId appId); @Override void activate(ApplicationId appId); @Override void deactivate(ApplicationId appId); @Override void setPermissions(ApplicationId appId, Set<Permission> permissions); }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Activate public void activate() { eventDispatcher.addSink(ApplicationEvent.class, listenerRegistry); initializing = true; store.setDelegate(delegate); initializing = false; log.info("Started"); }  @Activate void activate(); @Deactivate void deactivate(); @Override Set<Application> getApplications(); @Override ApplicationId getId(String name); @Override Application getApplication(ApplicationId appId); @Override ApplicationState getState(ApplicationId appId); @Override Set<Permission> getPermissions(ApplicationId appId); @Override void registerDeactivateHook(ApplicationId appId, Runnable hook); @Override Application install(InputStream appDescStream); @Override void uninstall(ApplicationId appId); @Override void activate(ApplicationId appId); @Override void deactivate(ApplicationId appId); @Override void setPermissions(ApplicationId appId, Set<Permission> permissions);  }