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 Bootstrap
delegate()
Bootstrap
deployBeans()
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 theAfterBeanDiscovery
is event is firedBootstrap
endInitialization()
Cleans up after the initializationboolean
equals(Object obj)
WeldManager
getManager(BeanDeploymentArchive beanDeploymentArchive)
Get the manager used for the given beanDeploymentArchive.int
hashCode()
void
shutdown()
Causes the container to clean up and shutdown Before the contain is shutdown theBeforeShutdown
event is firedBootstrap
startContainer(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 contextBootstrap
startInitialization()
Starts the application container initialization process: Reads metadata from beans.xml and theDeployment
service Starts the application context Starts the request context which lasts untilBootstrap.endInitialization()
is called Discovers and createsExtension
service providers Finally, theBeforeBeanDiscovery
event is fired.String
toString()
Bootstrap
validateBeans()
Validates the deployment.
-
-
-
Method Detail
-
delegate
protected abstract Bootstrap delegate()
-
getManager
public WeldManager getManager(BeanDeploymentArchive beanDeploymentArchive)
Description copied from interface:Bootstrap
Get 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:
getManager
in 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:Bootstrap
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
- Specified by:
startContainer
in interfaceBootstrap
- Parameters:
environment
- the environment in use, by defaultEnvironments.EE
deployment
- the Deployment to be booted- Returns:
- self
-
shutdown
public void shutdown()
Description copied from interface:Bootstrap
Causes the container to clean up and shutdown Before the contain is shutdown theBeforeShutdown
event is fired
-
deployBeans
public Bootstrap deployBeans()
Description copied from interface:Bootstrap
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
AfterBeanDiscovery
is event is fired- Specified by:
deployBeans
in interfaceBootstrap
- Returns:
- self
-
endInitialization
public Bootstrap endInitialization()
Description copied from interface:Bootstrap
Cleans up after the initialization- Specified by:
endInitialization
in interfaceBootstrap
- Returns:
- self
-
startInitialization
public Bootstrap startInitialization()
Description copied from interface:Bootstrap
Starts the application container initialization process:- Reads metadata from beans.xml and the
Deployment
service - Starts the application context
- Starts the request context which lasts until
Bootstrap.endInitialization()
is called - Discovers and creates
Extension
service providers
BeforeBeanDiscovery
event is fired.- Specified by:
startInitialization
in interfaceBootstrap
- Returns:
- self
- Reads metadata from beans.xml and the
-
validateBeans
public Bootstrap validateBeans()
Description copied from interface:Bootstrap
Validates the deployment. After validation, theAfterDeploymentValidation
event is fired- Specified by:
validateBeans
in interfaceBootstrap
- Returns:
- self
-
-