org.apache.openejb.core
Class CoreContainerSystem
java.lang.Object
org.apache.openejb.core.CoreContainerSystem
- All Implemented Interfaces:
- ContainerSystem
public class CoreContainerSystem
- extends Object
- implements ContainerSystem
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoreContainerSystem
public CoreContainerSystem(JndiFactory jndiFactory)
- Constructs a CoreContainerSystem and initializes the root JNDI context.
It also creates three sub contexts, namely
- java:openejb/local
- java:openejb/client
- java:openejb/Deployment
- Parameters:
jndiFactory - JndiFactory
- Throws:
RuntimeException - if there is a problem during initialization of the root context
getBeanContext
public BeanContext getBeanContext(Object deploymentID)
- Returns the DeploymentInfo for an EJB with the given deploymentID.
- Specified by:
getBeanContext in interface ContainerSystem
- Parameters:
deploymentID - The deployment ID of an EJB
deployments
public BeanContext[] deployments()
- Specified by:
deployments in interface ContainerSystem
addDeployment
public void addDeployment(BeanContext deployment)
removeBeanContext
public void removeBeanContext(BeanContext info)
getContainer
public Container getContainer(Object id)
- Specified by:
getContainer in interface ContainerSystem
containers
public Container[] containers()
- Specified by:
containers in interface ContainerSystem
addContainer
public void addContainer(Object id,
Container c)
removeContainer
public void removeContainer(Object id)
getWebContext
public WebContext getWebContext(String id)
- Specified by:
getWebContext in interface ContainerSystem
WebDeployments
public WebContext[] WebDeployments()
addWebContext
public void addWebContext(WebContext webDeployment)
removeWebContext
public void removeWebContext(WebContext info)
getJNDIContext
public Context getJNDIContext()
- Specified by:
getJNDIContext in interface ContainerSystem
getAppContexts
public List<AppContext> getAppContexts()
- Specified by:
getAppContexts in interface ContainerSystem
getAppContext
public AppContext getAppContext(Object id)
- Specified by:
getAppContext in interface ContainerSystem
addAppContext
public void addAppContext(AppContext appContext)
removeAppContext
public AppContext removeAppContext(Object id)
getAppContextKeys
public Object[] getAppContextKeys()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.