public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }
public void shutdown() { try { // The container must destroy all contexts. // For non-web modules, fire @BeforeDestroyed event fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_BEFORE_DESTROYED, BeforeDestroyed.Literal.APPLICATION); deploymentManager.instance().select(ApplicationContext.class).get().invalidate(); deploymentManager.instance().select(SingletonContext.class).get().invalidate(); } finally { // fire @Destroyed(ApplicationScope.class) for non-web modules fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_DESTROYED, Destroyed.Literal.APPLICATION); try { // Finally, the container must fire an event of type BeforeShutdown. BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId); container.setState(ContainerState.SHUTDOWN); container.cleanup(); } } }
public void shutdown() { try { // The container must destroy all contexts. // For non-web modules, fire @BeforeDestroyed event fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_BEFORE_DESTROYED, BeforeDestroyed.Literal.APPLICATION); deploymentManager.instance().select(ApplicationContext.class).get().invalidate(); deploymentManager.instance().select(SingletonContext.class).get().invalidate(); } finally { // fire @Destroyed(ApplicationScope.class) for non-web modules fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_DESTROYED, Destroyed.Literal.APPLICATION); try { // Finally, the container must fire an event of type BeforeShutdown. BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId); container.setState(ContainerState.SHUTDOWN); container.cleanup(); } } }
public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }
public void shutdown() { try { // The container must destroy all contexts. // For non-web modules, fire @BeforeDestroyed event fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_BEFORE_DESTROYED, BeforeDestroyed.Literal.APPLICATION); deploymentManager.instance().select(ApplicationContext.class).get().invalidate(); deploymentManager.instance().select(SingletonContext.class).get().invalidate(); } finally { // fire @Destroyed(ApplicationScope.class) for non-web modules fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_DESTROYED, Destroyed.Literal.APPLICATION); try { // Finally, the container must fire an event of type BeforeShutdown. BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId); container.setState(ContainerState.SHUTDOWN); container.cleanup(); } } }
public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }
public void shutdown() { try { // The container must destroy all contexts. // For non-web modules, fire @BeforeDestroyed event fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_BEFORE_DESTROYED, BeforeDestroyed.Literal.APPLICATION); deploymentManager.instance().select(ApplicationContext.class).get().invalidate(); deploymentManager.instance().select(SingletonContext.class).get().invalidate(); } finally { // fire @Destroyed(ApplicationScope.class) for non-web modules fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_DESTROYED, Destroyed.Literal.APPLICATION); try { // Finally, the container must fire an event of type BeforeShutdown. BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId); container.setState(ContainerState.SHUTDOWN); container.cleanup(); } } }
public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }
public void shutdown() { try { // The container must destroy all contexts. // For non-web modules, fire @BeforeDestroyed event fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_BEFORE_DESTROYED, BeforeDestroyed.Literal.APPLICATION); deploymentManager.instance().select(ApplicationContext.class).get().invalidate(); deploymentManager.instance().select(SingletonContext.class).get().invalidate(); } finally { // fire @Destroyed(ApplicationScope.class) for non-web modules fireEventForNonWebModules(Object.class, ContextEvent.APPLICATION_DESTROYED, Destroyed.Literal.APPLICATION); try { // Finally, the container must fire an event of type BeforeShutdown. BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId); container.setState(ContainerState.SHUTDOWN); container.cleanup(); } } }
public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }
BeforeShutdownImpl.fire(deploymentManager); } finally { Container container = Container.instance(contextId);
public static void fire(BeanManagerImpl beanManager) { new BeforeShutdownImpl(beanManager).fire(); }