|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
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(java.lang.Object deploymentID,
DeploymentInfo info)
Adds a bean to this container. |
DeploymentInfo[] |
deployments()
Gets the DeploymentInfo objects for all the beans deployed in this container. |
java.lang.Object |
getContainerID()
Gets the id of this container. |
int |
getContainerType()
Gets the type of container (STATELESS, STATEFUL, ENTITY, or MESSAGE_DRIVEN |
DeploymentInfo |
getDeploymentInfo(java.lang.Object deploymentID)
Gets the DeploymentInfo object for the bean with the specified deployment id. |
void |
init(java.lang.Object containerId,
java.util.HashMap deployments,
java.util.Properties properties)
This method is used to initalized a new container with its name, deployments and properties. |
Field Detail |
---|
static final int STATELESS
static final int STATEFUL
static final int ENTITY
static final int MESSAGE_DRIVEN
Method Detail |
---|
void init(java.lang.Object containerId, java.util.HashMap deployments, java.util.Properties properties) throws OpenEJBException
OpenEJBException
int getContainerType()
java.lang.Object getContainerID()
DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
DeploymentInfo
object for the bean with the specified deployment id.
deploymentID
- the deployment id of the deployed bean.
DeploymentInfo
,
DeploymentInfo.getDeploymentID()
DeploymentInfo[] deployments()
DeploymentInfo
objects for all the beans deployed in this container.
DeploymentInfo
void deploy(java.lang.Object deploymentID, DeploymentInfo info) throws OpenEJBException
deploymentID
- the deployment id of the bean to deploy.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 |