| Constructor and Description |
|---|
WeldBootstrap() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<ContextHolder<? extends Context>> |
createContexts(ServiceRegistry services) |
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 the
AfterBeanDiscovery is event is fired |
Bootstrap |
endInitialization()
Cleans up after the initialization
|
BeanManagerImpl |
getManager(BeanDeploymentArchive beanDeploymentArchive)
Get the manager used for this beanDeploymentArchive.
|
Iterable<Metadata<Extension>> |
loadExtensions(ClassLoader classLoader)
Load CDI extensions using the provided ClassLoader
|
BeansXml |
parse(Iterable<URL> urls)
Parse the specified URLs as a series of beans.xml file and merge the result.
|
BeansXml |
parse(Iterable<URL> urls,
boolean removeDuplicates)
Parse the specified URLs as a series of beans.xml file and merge the result.
|
BeansXml |
parse(URL url)
Parse the specified URL as a beans.xml file.
|
void |
shutdown()
Causes the container to clean up and shutdown
Before the contain is shutdown the
BeforeShutdown event is fired |
Bootstrap |
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
context
|
Bootstrap |
startInitialization()
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
Finally, the BeforeBeanDiscovery event is fired. |
Bootstrap |
validateBeans()
Validates the deployment.
|
protected static void |
verifyServices(ServiceRegistry services,
Set<Class<? extends Service>> requiredServices) |
public Bootstrap startContainer(Environment environment, Deployment deployment)
BootstrapstartContainer in interface Bootstrapenvironment - the environment in use, by default
Environments.EEdeployment - the Deployment to be bootedpublic BeanManagerImpl getManager(BeanDeploymentArchive beanDeploymentArchive)
Bootstrap#startContainer() 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 the Deployment, or has
not yet been requested by
Deployment.loadBeanDeploymentArchive(Class)), null will be
returned.getManager in interface Bootstrappublic Bootstrap startInitialization()
BootstrapDeployment serviceBootstrap.endInitialization() is calledExtension service providersBeforeBeanDiscovery event is fired.startInitialization in interface Bootstrappublic Bootstrap deployBeans()
BootstrapAfterBeanDiscovery is event is fireddeployBeans in interface Bootstrappublic Bootstrap validateBeans()
BootstrapAfterDeploymentValidation event is firedvalidateBeans in interface Bootstrappublic Bootstrap endInitialization()
BootstrapendInitialization in interface Bootstrapprotected Collection<ContextHolder<? extends Context>> createContexts(ServiceRegistry services)
public void shutdown()
BootstrapBeforeShutdown event is firedprotected static void verifyServices(ServiceRegistry services, Set<Class<? extends Service>> requiredServices)
public BeansXml parse(Iterable<URL> urls)
Bootstrappublic BeansXml parse(Iterable<URL> urls, boolean removeDuplicates)
Bootstrappublic BeansXml parse(URL url)
Bootstrappublic Iterable<Metadata<Extension>> loadExtensions(ClassLoader classLoader)
BootstraploadExtensions in interface BootstrapclassLoader - the ClassLoader to use to load the extensionsCopyright © 2012 Seam Framework. All Rights Reserved.