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 ContainerSystemdeploymentID - The deployment ID of an EJBpublic BeanContext[] deployments()
deployments in interface ContainerSystempublic void addDeployment(BeanContext deployment)
public void removeBeanContext(BeanContext info)
public Container getContainer(java.lang.Object id)
getContainer in interface ContainerSystempublic Container[] containers()
containers in interface ContainerSystempublic 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 ContainerSystempublic WebContext getWebContext(java.lang.String id)
getWebContext in interface ContainerSystempublic WebContext[] WebDeployments()
public void addWebContext(WebContext webDeployment)
public void removeWebContext(WebContext info)
public javax.naming.Context getJNDIContext()
getJNDIContext in interface ContainerSystempublic java.util.List<AppContext> getAppContexts()
getAppContexts in interface ContainerSystempublic AppContext getAppContext(java.lang.Object id)
getAppContext in interface ContainerSystempublic void addAppContext(AppContext appContext)
public AppContext removeAppContext(java.lang.Object id)
public java.lang.Object[] getAppContextKeys()