@Override protected void checkState() { checkDeploymentValidated(); checkIsRunning(); }
@Override protected void checkState() { checkDeploymentValidated(); checkIsRunning(); }
@Override protected void checkState() { checkDeploymentValidated(); checkIsRunning(); }
@Override protected void checkState() { checkDeploymentValidated(); checkIsRunning(); }
/** * Provides direct access to the BeanManager. */ public BeanManager getBeanManager() { checkIsRunning(); return new BeanManagerProxy(beanManager()); }
/** * Provides direct access to the BeanManager. */ public BeanManager getBeanManager() { checkIsRunning(); return new BeanManagerProxy(beanManager()); }
/** * Provides direct access to the BeanManager. */ public BeanManager getBeanManager() { checkIsRunning(); return new BeanManagerProxy(beanManager()); }
/** * Provides direct access to the BeanManager. */ public BeanManager getBeanManager() { checkIsRunning(); return new BeanManagerProxy(beanManager()); }
/** * Provides access to all events within the application. For example: * * <code> * weldContainer.event().select(Bar.class).fire(new Bar()); * </code> * * @return the event */ public WeldEvent<Object> event() { checkIsRunning(); if (event == null) { synchronized (this) { if (event == null) { event = beanManager().event(); } } } return event; }
/** * Provides access to all events within the application. For example: * * <code> * weldContainer.event().select(Bar.class).fire(new Bar()); * </code> * * @return the event */ public WeldEvent<Object> event() { checkIsRunning(); if (event == null) { synchronized (this) { if (event == null) { event = beanManager().event(); } } } return event; }
/** * Provides access to all events within the application. For example: * * <code> * weldContainer.event().select(Bar.class).fire(new Bar()); * </code> * * @return the event */ public WeldEvent<Object> event() { checkIsRunning(); if (event == null) { synchronized (this) { if (event == null) { event = beanManager().event(); } } } return event; }
/** * Provides access to all events within the application. For example: * * <code> * weldContainer.event().select(Bar.class).fire(new Bar()); * </code> * * @return the event */ public WeldEvent<Object> event() { checkIsRunning(); if (event == null) { synchronized (this) { if (event == null) { event = beanManager().event(); } } } return event; }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerShutdown(id), DestroyedLiteral.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }