|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Container manages one or more bean deployments at runtime. There are two basic types of containers, the RPC container (org.openejb.RpcContainer) and the Java Message Service container (org.openejb.JmsContainer), both of which extend the base type org.openejb.Container.
The Container interface provides methods for accessing the Container's id, its ContainerManager, and the deployments managed by the container (represented by org.openejb.DeploymentInfo objects). In addition, the container defines the getContainerType() method, which will return Container.ENTITY, Container.STATEFUL, Container.STATELESS, or Container.MESSAGE_DRIVEN, depending on the bean type managed by the container.
Field Summary | |
static int |
ENTITY
|
static int |
MESSAGE_DRIVEN
|
static int |
STATEFUL
|
static int |
STATELESS
|
Method Summary | |
void |
deploy(Object deploymentID,
DeploymentInfo info)
Adds a bean to this container. |
DeploymentInfo[] |
deployments()
Gets the DeploymentInfo objects for all the beans deployed in this container. |
Object |
getContainerID()
Gets the id of this container. |
int |
getContainerType()
Gets the type of container (STATELESS, STATEFUL, ENTITY, or MESSAGE_DRIVEN |
DeploymentInfo |
getDeploymentInfo(Object deploymentID)
Gets the DeploymentInfo object for the bean with the specified deployment id. |
void |
init(Object containerId,
HashMap deployments,
Properties properties)
This method is used to initalized a new container with its name, deployments and properties. |
Field Detail |
public static final int STATELESS
public static final int STATEFUL
public static final int ENTITY
public static final int MESSAGE_DRIVEN
Method Detail |
public void init(Object containerId, HashMap deployments, Properties properties) throws OpenEJBException
OpenEJBException
public int getContainerType()
public Object getContainerID()
DeploymentInfo.getContainerID()
public DeploymentInfo getDeploymentInfo(Object deploymentID)
DeploymentInfo
object for the bean with the specified deployment id.
DeploymentInfo
,
ContainerSystem.getDeploymentInfo
,
DeploymentInfo.getDeploymentID()
public DeploymentInfo[] deployments()
DeploymentInfo
objects for all the beans deployed in this container.
DeploymentInfo
,
ContainerSystem.deployments()
public void deploy(Object deploymentID, DeploymentInfo info) throws OpenEJBException
info
- the DeploymentInfo object associated with the bean.
OpenEJBException
- Occurs when the container is not able to deploy the bean for some
reason.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |