public class CoreContainerSystem extends java.lang.Object implements ContainerSystem
Constructor and Description |
---|
CoreContainerSystem(JndiFactory jndiFactory)
Constructs a CoreContainerSystem and initializes the root JNDI context.
|
Modifier and Type | Method and Description |
---|---|
void |
addAppContext(AppContext appContext) |
void |
addContainer(java.lang.Object id,
Container c) |
void |
addDeployment(BeanContext deployment) |
void |
addWebContext(WebContext webDeployment) |
Container[] |
containers() |
BeanContext[] |
deployments() |
AppContext |
getAppContext(java.lang.Object id) |
java.lang.Object[] |
getAppContextKeys() |
java.util.List<AppContext> |
getAppContexts() |
BeanContext |
getBeanContext(java.lang.Object deploymentID)
Returns the DeploymentInfo for an EJB with the given deploymentID.
|
Container |
getContainer(java.lang.Object id) |
javax.naming.Context |
getJNDIContext() |
WebContext |
getWebContext(java.lang.String id) |
WebContext |
getWebContextByHost(java.lang.String id,
java.lang.String host) |
AppContext |
removeAppContext(java.lang.Object id) |
void |
removeBeanContext(BeanContext info) |
void |
removeContainer(java.lang.Object id) |
void |
removeWebContext(WebContext info) |
WebContext[] |
WebDeployments() |
public CoreContainerSystem(JndiFactory jndiFactory)
jndiFactory
- JndiFactoryjava.lang.RuntimeException
- if there is a problem during initialization of the root contextpublic BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext
in interface ContainerSystem
deploymentID
- The deployment ID of an EJBpublic BeanContext[] deployments()
deployments
in interface ContainerSystem
public void addDeployment(BeanContext deployment)
public void removeBeanContext(BeanContext info)
public Container getContainer(java.lang.Object id)
getContainer
in interface ContainerSystem
public Container[] containers()
containers
in interface ContainerSystem
public void addContainer(java.lang.Object id, Container c)
public void removeContainer(java.lang.Object id)
public WebContext getWebContextByHost(java.lang.String id, java.lang.String host)
getWebContextByHost
in interface ContainerSystem
public WebContext getWebContext(java.lang.String id)
getWebContext
in interface ContainerSystem
public WebContext[] WebDeployments()
public void addWebContext(WebContext webDeployment)
public void removeWebContext(WebContext info)
public javax.naming.Context getJNDIContext()
getJNDIContext
in interface ContainerSystem
public java.util.List<AppContext> getAppContexts()
getAppContexts
in interface ContainerSystem
public AppContext getAppContext(java.lang.Object id)
getAppContext
in interface ContainerSystem
public void addAppContext(AppContext appContext)
public AppContext removeAppContext(java.lang.Object id)
public java.lang.Object[] getAppContextKeys()