@Test public void deactivate() { activate(); mgr.deactivate(APP_ID); assertEquals("incorrect app state", INSTALLED, mgr.getState(APP_ID)); assertTrue("preDeactivate hook not called", deactivated); }
@Deactivate public void deactivate() { eventDispatcher.removeSink(ApplicationEvent.class); store.unsetDelegate(delegate); log.info("Stopped"); }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Deactivate public void deactivate() { eventDispatcher.removeSink(ApplicationEvent.class); store.unsetDelegate(delegate); log.info("Stopped"); } }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Deactivate public void deactivate() { eventDispatcher.removeSink(ApplicationEvent.class); store.unsetDelegate(delegate); log.info("Stopped"); }  }
ApplicationManager extends AbstractListenerManager<ApplicationEvent, ApplicationListener> implements ApplicationService, ApplicationAdminService { @Deactivate public void deactivate() { eventDispatcher.removeSink(ApplicationEvent.class); store.unsetDelegate(delegate); log.info("Stopped"); }  @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 { @Deactivate public void deactivate() { eventDispatcher.removeSink(ApplicationEvent.class); store.unsetDelegate(delegate); log.info("Stopped"); }  @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);  }