Class ForwardingBootstrap
java.lang.Object
org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap
- All Implemented Interfaces:
Bootstrap
Implementation of
Bootstrap which supports the decorator pattern- Author:
- Pete Muir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Bootstrapdelegate()Returns the delegateCreates and deploys the application's beans: Creates and deploys the discovered beans Creates and deploys the built-in beans defined by the CDI specification Finally theAfterBeanDiscoveryis event is firedCleans up after the initializationbooleangetManager(BeanDeploymentArchive beanDeploymentArchive) Get the manager used for the given beanDeploymentArchive.inthashCode()voidshutdown()Causes the container to clean up and shutdown Before the contain is shutdown theBeforeShutdownevent is firedstartContainer(Environment environment, Deployment deployment) Creates the application container: Checks that the services required by the environment have been provided Adds container provided services Creates and initializes the built in contexts Creates the manager contextStarts the application container initialization process: Reads metadata from beans.xml and theDeploymentservice Starts the application context Starts the request context which lasts untilBootstrap.endInitialization()is called Discovers and createsExtensionservice providers Finally, theBeforeBeanDiscoveryevent is fired.toString()Validates the deployment.
-
Constructor Details
-
ForwardingBootstrap
public ForwardingBootstrap()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
getManager
Description copied from interface:BootstrapGet the manager used for the given beanDeploymentArchive. IfBootstrap.startContainer(Environment, Deployment)has not been called, this method will return null. If the beanDeploymentArchive is not known to Weld (for example, it was not passed to the Weld as part of theDeployment, or has not yet been requested byDeployment.loadBeanDeploymentArchive(Class)), null will be returned.- Specified by:
getManagerin interfaceBootstrap- Parameters:
beanDeploymentArchive- the given beanDeploymentArchive- Returns:
- the manager or null if not yet available or not found.
-
startContainer
Description copied from interface:BootstrapCreates the application container:- Checks that the services required by the environment have been provided
- Adds container provided services
- Creates and initializes the built in contexts
- Creates the manager
- Specified by:
startContainerin interfaceBootstrap- Parameters:
environment- the environment in use, by defaultEnvironments.EEdeployment- the Deployment to be booted- Returns:
- self
-
shutdown
public void shutdown()Description copied from interface:BootstrapCauses the container to clean up and shutdown Before the contain is shutdown theBeforeShutdownevent is fired -
toString
-
hashCode
public int hashCode() -
equals
-
deployBeans
Description copied from interface:BootstrapCreates and deploys the application's beans:- Creates and deploys the discovered beans
- Creates and deploys the built-in beans defined by the CDI specification
AfterBeanDiscoveryis event is fired- Specified by:
deployBeansin interfaceBootstrap- Returns:
- self
-
endInitialization
Description copied from interface:BootstrapCleans up after the initialization- Specified by:
endInitializationin interfaceBootstrap- Returns:
- self
-
startInitialization
Description copied from interface:BootstrapStarts the application container initialization process:- Reads metadata from beans.xml and the
Deploymentservice - Starts the application context
- Starts the request context which lasts until
Bootstrap.endInitialization()is called - Discovers and creates
Extensionservice providers
BeforeBeanDiscoveryevent is fired.- Specified by:
startInitializationin interfaceBootstrap- Returns:
- self
- Reads metadata from beans.xml and the
-
validateBeans
Description copied from interface:BootstrapValidates the deployment. After validation, theAfterDeploymentValidationevent is fired- Specified by:
validateBeansin interfaceBootstrap- Returns:
- self
-