Class ForwardingBootstrap
- java.lang.Object
-
- org.jboss.weld.bootstrap.api.helpers.ForwardingBootstrap
-
-
Constructor Summary
Constructors Constructor Description ForwardingBootstrap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Bootstrapdelegate()BootstrapdeployBeans()Creates 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 firedBootstrapendInitialization()Cleans up after the initializationbooleanequals(Object obj)WeldManagergetManager(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 firedBootstrapstartContainer(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 contextBootstrapstartInitialization()Starts 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.StringtoString()BootstrapvalidateBeans()Validates the deployment.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.weld.bootstrap.api.Bootstrap
loadExtensions, parse, parse, parse
-
-
-
-
Method Detail
-
delegate
protected abstract Bootstrap delegate()
-
getManager
public WeldManager getManager(BeanDeploymentArchive beanDeploymentArchive)
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
public Bootstrap startContainer(Environment environment, Deployment deployment)
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
-
deployBeans
public Bootstrap 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
public Bootstrap endInitialization()
Description copied from interface:BootstrapCleans up after the initialization- Specified by:
endInitializationin interfaceBootstrap- Returns:
- self
-
startInitialization
public Bootstrap 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
public Bootstrap validateBeans()
Description copied from interface:BootstrapValidates the deployment. After validation, theAfterDeploymentValidationevent is fired- Specified by:
validateBeansin interfaceBootstrap- Returns:
- self
-
-