org.apache.openejb.core
Class CoreContainerSystem

java.lang.Object
  extended by org.apache.openejb.core.CoreContainerSystem
All Implemented Interfaces:
ContainerSystem

public class CoreContainerSystem
extends Object
implements ContainerSystem


Constructor Summary
CoreContainerSystem(JndiFactory jndiFactory)
          Constructs a CoreContainerSystem and initializes the root JNDI context.
 
Method Summary
 void addAppContext(AppContext appContext)
           
 void addContainer(Object id, Container c)
           
 void addDeployment(BeanContext deployment)
           
 void addWebContext(WebContext webDeployment)
           
 Container[] containers()
           
 BeanContext[] deployments()
           
 AppContext getAppContext(Object id)
           
 Object[] getAppContextKeys()
           
 List<AppContext> getAppContexts()
           
 BeanContext getBeanContext(Object deploymentID)
          Returns the DeploymentInfo for an EJB with the given deploymentID.
 Container getContainer(Object id)
           
 Context getJNDIContext()
           
 WebContext getWebContext(String id)
           
 void removeAppContext(Object id)
           
 void removeBeanContext(BeanContext info)
           
 void removeContainer(Object id)
           
 void removeWebContext(WebContext info)
           
 WebContext[] WebDeployments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreContainerSystem

public CoreContainerSystem(JndiFactory jndiFactory)
Constructs a CoreContainerSystem and initializes the root JNDI context. It also creates three sub contexts, namely

Parameters:
jndiFactory -
Throws:
RuntimeException - if there is a problem during initialization of the root context
Method Detail

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 void removeAppContext(Object id)

getAppContextKeys

public Object[] getAppContextKeys()


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.