public final class WebContainerLifecycle extends AbstractLifeCycle
Behaves according to the request, session, and application contexts of the web application.
WebBeansConfigurationListenercontextsService, logger, scannerService, started, webBeansContext| Constructor and Description |
|---|
WebContainerLifecycle()
Creates a new lifecycle instance and initializes
the instance variables.
|
WebContainerLifecycle(WebBeansContext webBeansContext)
Creates a new lifecycle instance and initializes
the instance variables.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterStartApplication(Object startupObject) |
protected void |
afterStopApplication(Object stopObject) |
protected void |
beforeStartApplication(Object startupObject) |
protected void |
beforeStopApplication(Object stopObject) |
void |
startApplication(Object startupObject)
Starts container.
|
void |
stopApplication(Object endObject)
Stopping the Application means that the container destroys all bean instances
it stores, cleans and removes all contexts and does other necessary
cleanup actions.
|
afterInitApplication, beforeInitApplication, bootstrapApplication, getBeanManager, getContextService, getWebBeansContext, initApplicationpublic WebContainerLifecycle()
public WebContainerLifecycle(WebBeansContext webBeansContext)
public void startApplication(Object startupObject)
For Java EE artifact deployment, it scans all classes and libraries in all deployment archives in the classpath. There are several types of deployment archives;
Container uses ScannerService SPI for scanning archives
and act accordingly. If there is an exception while starting,
it must abort the deployment and provides information to the
developer.
startApplication in interface ContainerLifecyclestartApplication in class AbstractLifeCyclestartupObject - any startup object.public void stopApplication(Object endObject)
Stopping the Application means that the container destroys all bean instances it stores, cleans and removes all contexts and does other necessary cleanup actions.
Attention: Accessing the BeanManager or any bean proxy after the shutdown will result in non-portable behaviour!
stopApplication in interface ContainerLifecyclestopApplication in class AbstractLifeCycleendObject - any object provided by application implementor. This can be a ServletContext, etcprotected void afterStartApplication(Object startupObject)
afterStartApplication in class AbstractLifeCycleprotected void beforeStartApplication(Object startupObject)
beforeStartApplication in class AbstractLifeCycleprotected void beforeStopApplication(Object stopObject)
beforeStopApplication in class AbstractLifeCycleprotected void afterStopApplication(Object stopObject)
afterStopApplication in class AbstractLifeCycleCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.