Package org.jboss.weld
Class Container
java.lang.Object
org.jboss.weld.Container
A Weld application container
- Author:
- pmuir
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContainer(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) Container(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment) Container(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanMap<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> voidcleanup()Cause the container to be cleaned up, including all registered bean managers, and all deployment servicesGets the manager for this application deploymentgetBeanManager(String key) Get the BeanManager for a given keystatic org.jboss.weld.bootstrap.api.EnvironmentReturnsEnvironmentthat this container was booted in, or null if not set or invoked too early in the bootstrapping process.getState()static voidinitialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) static voidinitialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment) static voidinitialize(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) Initialize the container for the current application deploymentstatic Containerinstance()Get the container for the current application deploymentstatic Containerstatic Containerinstance(AnnotatedTypeIdentifier identifier) static Containerinstance(BeanManagerImpl manager) static booleanvoidputBeanDeployments(BeanDeploymentArchiveMapping bdaMapping) Add sub-deployment units to the containerorg.jboss.weld.bootstrap.api.ServiceRegistryservices()Get the services for this application deploymentvoidsetState(ContainerState state)
-
Field Details
-
CONTEXT_ID_KEY
- See Also:
-
-
Constructor Details
-
Container
public Container(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) -
Container
public Container(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) -
Container
public Container(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment)
-
-
Method Details
-
instance
Get the container for the current application deployment- Returns:
-
available
public static boolean available() -
instance
-
instance
-
instance
-
available
-
isSet
-
initialize
public static void initialize(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) Initialize the container for the current application deployment- Parameters:
deploymentManager-deploymentServices-
-
initialize
public static void initialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) -
initialize
public static void initialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment) -
cleanup
public void cleanup()Cause the container to be cleaned up, including all registered bean managers, and all deployment services -
deploymentManager
Gets the manager for this application deployment -
beanDeploymentArchives
public Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives() -
getBeanManager
Get the BeanManager for a given key- Parameters:
key-- Returns:
-
services
public org.jboss.weld.bootstrap.api.ServiceRegistry services()Get the services for this application deployment- Returns:
- the deploymentServices
-
putBeanDeployments
Add sub-deployment units to the container- Parameters:
bdaMapping-
-
getState
-
setState
-
getEnvironment
public static org.jboss.weld.bootstrap.api.Environment getEnvironment()ReturnsEnvironmentthat this container was booted in, or null if not set or invoked too early in the bootstrapping process. Note that should there be multiple containers active, this will return theEnvironmentthat the first container was bootstrapped in, unless it was null.- Returns:
Environmentor null
-