org.openejb.spi
Interface ContainerSystem

All Known Implementing Classes:
ContainerSystem

public interface ContainerSystem

The ContainerSystem interface represents a complete OpenEJB container system including ContainerManagers, Containers, deployed enterprise beans and the primary services (transaction, security, and persistence).

The ContainerSystem serves as the root in the container system hierarchy. The ContainerSystem contains one or more ContainerManagers. ContainerManagers contain one or more Containers. Containers contain one or more deployed beans of particular kind (stateless, stateful, or entity).

The access to other parts of the container system hierarchy is not ridged, the ContainerSystem interface provides methods for accessing its ContainerManagers by ID or as a collection. The interface also provides methods for obtaining references to specific Containers and DeploymentInfo objects by ID. IDs for all elements of the container system are unique across the container system.

The default implementation of this interface is provided by the org.openejb.core.ContainerSystem class.

Since:
JDK 1.2
Version:
0.1, 3/21/2000
Author:
Richard Monson-Haefel
See Also:
ContainerSystem

Method Summary
 Container[] containers()
          Gets all the Containers in this container system.
 DeploymentInfo[] deployments()
          Gets the DeploymentInfo objects for all the beans deployed in all the containers in this container system.
 Container getContainer(java.lang.Object id)
          Returns the Container in this container system with the specified id.
 DeploymentInfo getDeploymentInfo(java.lang.Object id)
          Gets the DeploymentInfo object for the bean with the specified deployment id.
 javax.naming.Context getJNDIContext()
          Returns the global JNDI name space for the OpenEJB container system.
 

Method Detail

getDeploymentInfo

DeploymentInfo getDeploymentInfo(java.lang.Object id)
Gets the DeploymentInfo object for the bean with the specified deployment id.

Parameters:
id - the deployment id of the deployed bean.
Returns:
the DeploymentInfo object associated with the bean.
See Also:
DeploymentInfo, Container.getDeploymentInfo, DeploymentInfo.getDeploymentID()

deployments

DeploymentInfo[] deployments()
Gets the DeploymentInfo objects for all the beans deployed in all the containers in this container system.

Returns:
an array of DeploymentInfo objects
See Also:
DeploymentInfo, Container.deployments()

getContainer

Container getContainer(java.lang.Object id)
Returns the Container in this container system with the specified id.

Parameters:
id - the id of the Container
Returns:
the Container associated with the id
See Also:
Container, Container.getContainerID()

containers

Container[] containers()
Gets all the Containers in this container system.

Returns:
an array of all the Containers
See Also:
Container

getJNDIContext

javax.naming.Context getJNDIContext()
Returns the global JNDI name space for the OpenEJB container system. The global JNDI name space contains bindings for all enterprise bean EJBHome object deployed in the entire container system. EJBHome objects are bound using their deployment-id under the java:openejb/ejb/ namespace. For example, an enterprise bean with the deployment id = 55555 would be have its EJBHome bound to the name "java:openejb/ejb/55555"

Returns:
the global JNDI context


Copyright © 1999-2011 OpenEJB. All Rights Reserved.