org.apache.openejb.core
Class CoreContainerSystem

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

public class CoreContainerSystem
extends java.lang.Object
implements ContainerSystem


Constructor Summary
CoreContainerSystem(JndiFactory jndiFactory)
          Constructs a CoreContainerSystem and initializes the root JNDI context.
 
Method Summary
 void addContainer(java.lang.Object id, Container c)
           
 void addDeployment(DeploymentInfo deployment)
           
 void addWebDeployment(WebDeploymentInfo webDeployment)
           
 Container[] containers()
           
 DeploymentInfo[] deployments()
           
 Container getContainer(java.lang.Object id)
           
 DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
          Returns the DeploymentInfo for an EJB with the given deploymentID.
 javax.naming.Context getJNDIContext()
           
 WebDeploymentInfo getWebDeploymentInfo(java.lang.String id)
           
 void removeContainer(java.lang.Object id)
           
 void removeDeploymentInfo(DeploymentInfo info)
           
 void removeWebDeploymentInfo(WebDeploymentInfo info)
           
 WebDeploymentInfo[] 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:
java.lang.RuntimeException - if there is a problem during initialization of the root context
Method Detail

getDeploymentInfo

public DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
Returns the DeploymentInfo for an EJB with the given deploymentID.

Specified by:
getDeploymentInfo in interface ContainerSystem
Parameters:
deploymentID - The deployment ID of an EJB

deployments

public DeploymentInfo[] deployments()
Specified by:
deployments in interface ContainerSystem

addDeployment

public void addDeployment(DeploymentInfo deployment)

removeDeploymentInfo

public void removeDeploymentInfo(DeploymentInfo info)

getContainer

public Container getContainer(java.lang.Object id)
Specified by:
getContainer in interface ContainerSystem

containers

public Container[] containers()
Specified by:
containers in interface ContainerSystem

addContainer

public void addContainer(java.lang.Object id,
                         Container c)

removeContainer

public void removeContainer(java.lang.Object id)

getWebDeploymentInfo

public WebDeploymentInfo getWebDeploymentInfo(java.lang.String id)
Specified by:
getWebDeploymentInfo in interface ContainerSystem

WebDeployments

public WebDeploymentInfo[] WebDeployments()

addWebDeployment

public void addWebDeployment(WebDeploymentInfo webDeployment)

removeWebDeploymentInfo

public void removeWebDeploymentInfo(WebDeploymentInfo info)

getJNDIContext

public javax.naming.Context getJNDIContext()
Specified by:
getJNDIContext in interface ContainerSystem


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.