public class Container
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTEXT_ID_KEY |
static java.lang.ThreadLocal<java.lang.String> |
currentId |
| Constructor and Description |
|---|
Container(BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices) |
Container(java.lang.String contextId,
BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices) |
| Modifier and Type | Method and Description |
|---|---|
BeanManagerImpl |
activityManager(java.lang.String key)
Deprecated.
Use
getBeanManager(String) instead |
static boolean |
available() |
static boolean |
available(java.lang.String contextId) |
java.util.Map<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(java.lang.String key)
Get the BeanManager for a given key
|
ContainerState |
getState() |
static void |
initialize(BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices)
Initialize the container for the current application deployment
|
static void |
initialize(java.lang.String contextId,
BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices) |
static Container |
instance()
Get the container for the current application deployment
|
static Container |
instance(AnnotatedTypeIdentifier identifier) |
static Container |
instance(BeanManagerImpl manager) |
static Container |
instance(java.lang.String contextId) |
void |
putBeanDeployments(BeanDeploymentArchiveMapping bdaMapping)
Add sub-deployment units to the container
|
ServiceRegistry |
services()
Get the services for this application deployment
|
void |
setState(ContainerState state) |
public static final java.lang.String CONTEXT_ID_KEY
public static final java.lang.ThreadLocal<java.lang.String> currentId
public Container(java.lang.String contextId,
BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices)
public Container(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices)
public static Container instance()
public static boolean available()
public static Container instance(java.lang.String contextId)
public static Container instance(BeanManagerImpl manager)
public static Container instance(AnnotatedTypeIdentifier identifier)
public static boolean available(java.lang.String contextId)
public static void initialize(BeanManagerImpl deploymentManager, ServiceRegistry deploymentServices)
deploymentManager - deploymentServices - public static void initialize(java.lang.String contextId,
BeanManagerImpl deploymentManager,
ServiceRegistry deploymentServices)
public void cleanup()
public BeanManagerImpl deploymentManager()
public java.util.Map<BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives()
public BeanManagerImpl getBeanManager(java.lang.String key)
key - @Deprecated public BeanManagerImpl activityManager(java.lang.String key)
getBeanManager(String) insteadpublic ServiceRegistry services()
public void putBeanDeployments(BeanDeploymentArchiveMapping bdaMapping)
bdaMapping - public ContainerState getState()
public void setState(ContainerState state)
Copyright © 2015. All Rights Reserved.