public class Container extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_ID_KEY |
| Constructor and Description |
|---|
Container(BeanManagerImpl deploymentManager,
org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) |
Container(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) |
| Modifier and Type | Method and Description |
|---|---|
BeanManagerImpl |
activityManager(String key)
Deprecated.
Use
getBeanManager(String) instead |
static boolean |
available() |
static boolean |
available(String contextId) |
Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> |
beanDeploymentArchives() |
void |
cleanup()
Cause the container to be cleaned up, including all registered bean
managers, and all deployment services
|
BeanManagerImpl |
deploymentManager()
Gets the manager for this application deployment
|
BeanManagerImpl |
getBeanManager(String key)
Get the BeanManager for a given key
|
static org.jboss.weld.bootstrap.api.Environment |
getEnvironment()
Returns
Environment that this container was booted in, or null if not set or invoked too
early in the bootstrapping process. |
ContainerState |
getState() |
static void |
initialize(BeanManagerImpl deploymentManager,
org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
Initialize the container for the current application deployment
|
static void |
initialize(String contextId,
BeanManagerImpl deploymentManager,
org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices) |
static void |
initialize(String contextId,
BeanManagerImpl deploymentManager,
org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices,
org.jboss.weld.bootstrap.api.Environment environment) |
static Container |
instance()
Get the container for the current application deployment
|
static Container |
instance(AnnotatedTypeIdentifier identifier) |
static Container |
instance(BeanManagerImpl manager) |
static Container |
instance(String contextId) |
static boolean |
isSet(String contextId) |
void |
putBeanDeployments(BeanDeploymentArchiveMapping bdaMapping)
Add sub-deployment units to the container
|
org.jboss.weld.bootstrap.api.ServiceRegistry |
services()
Get the services for this application deployment
|
void |
setState(ContainerState state) |
public static final String CONTEXT_ID_KEY
public Container(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
public Container(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
public Container(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment)
public static Container instance()
public static boolean available()
public static Container instance(BeanManagerImpl manager)
public static Container instance(AnnotatedTypeIdentifier identifier)
public static boolean available(String contextId)
public static boolean isSet(String contextId)
public static void initialize(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
deploymentManager - deploymentServices - public static void initialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
public static void initialize(String contextId, BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices, org.jboss.weld.bootstrap.api.Environment environment)
public void cleanup()
public BeanManagerImpl deploymentManager()
public Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives()
public BeanManagerImpl getBeanManager(String key)
key - @Deprecated public BeanManagerImpl activityManager(String key)
getBeanManager(String) insteadpublic org.jboss.weld.bootstrap.api.ServiceRegistry services()
public void putBeanDeployments(BeanDeploymentArchiveMapping bdaMapping)
bdaMapping - public ContainerState getState()
public void setState(ContainerState state)
public static org.jboss.weld.bootstrap.api.Environment getEnvironment()
Environment that 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 the Environment that the first container
was bootstrapped in, unless it was null.Environment or nullCopyright © 2019. All rights reserved.