All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.ejb.deployment.DeploymentDescriptor

java.lang.Object
   |
   +----javax.ejb.deployment.DeploymentDescriptor

public abstract class DeploymentDescriptor
extends Object
implements Serializable
The DeploymentDescriptor class is the common base class for the SessionDescriptor and EntityDescriptor deployment descriptor classes.

The methods of the class conform to the JavaBeans property design pattern.

See Also:
EntityDescriptor, SessionDescriptor

Variable Index

 o versionNumber

Constructor Index

 o DeploymentDescriptor()
Create an instance of DeploymentDescriptor.

Method Index

 o getAccessControlEntries()
Get the AccessControlEntry objects for the enterprise Bean.
 o getAccessControlEntries(int)
Get the AccessControlEntry object at a specified index.
 o getBeanHomeName()
Get the name to associate with the enterprise Bean in the JNDI name space.
 o getControlDescriptors()
Get the array of the enterprise Bean's control descriptors.
 o getControlDescriptors(int)
Get the control descriptor at the specified index.
 o getEnterpriseBeanClassName()
Get the enterprise Bean's full class name.
 o getEnvironmentProperties()
Get enterprise Bean's environment properties.
 o getHomeInterfaceClassName()
Get the full name of the enterprise Bean's home interface.
 o getReentrant()
This method returns the same result as isReentrant().
 o getRemoteInterfaceClassName()
Get the full name of the enterprise Bean's remote interface.
 o isReentrant()
Test if the enterprise Bean is re-entrant.
 o setAccessControlEntries(AccessControlEntry[])
Set the AccessControlEntry objects for the enterprise Bean.
 o setAccessControlEntries(int, AccessControlEntry)
Set the AccessControlEntry object at a specified index.
 o setBeanHomeName(Name)
Set the name to associate with the enterprise Bean in the JNDI name space.
 o setControlDescriptors(ControlDescriptor[])
Set the array of the enterprise Bean's control descriptors.
 o setControlDescriptors(int, ControlDescriptor)
Set the control descriptor at the specified index.
 o setEnterpriseBeanClassName(String)
Set the enterprise Bean's full class name.
 o setEnvironmentProperties(Properties)
Set enterprise Bean's environment properties.
 o setHomeInterfaceClassName(String)
Set the full name of the enterprise Bean's home interface.
 o setReentrant(boolean)
Specify that the enterprise Bean is re-entrant.
 o setRemoteInterfaceClassName(String)
Set the full name of the enterprise Bean's remote interface.

Variables

 o versionNumber
 protected int versionNumber

Constructors

 o DeploymentDescriptor
 public DeploymentDescriptor()
Create an instance of DeploymentDescriptor.

Methods

 o getEnterpriseBeanClassName
 public String getEnterpriseBeanClassName()
Get the enterprise Bean's full class name.

Returns:
The enterprise Bean's class name.
 o setEnterpriseBeanClassName
 public void setEnterpriseBeanClassName(String value)
Set the enterprise Bean's full class name.

Parameters:
value - The enterprise Bean's class name.
 o getHomeInterfaceClassName
 public String getHomeInterfaceClassName()
Get the full name of the enterprise Bean's home interface.

Returns:
The name of the enterprise Bean's home interface.
 o setHomeInterfaceClassName
 public void setHomeInterfaceClassName(String value)
Set the full name of the enterprise Bean's home interface.

Parameters:
value - The name of the enterprise Bean's home interface.
 o getRemoteInterfaceClassName
 public String getRemoteInterfaceClassName()
Get the full name of the enterprise Bean's remote interface.

Returns:
The name of the enterprise Bean's remote interface.
 o setRemoteInterfaceClassName
 public void setRemoteInterfaceClassName(String value)
Set the full name of the enterprise Bean's remote interface.

Parameters:
value - The name of the enterprise Bean's remote interface.
 o getBeanHomeName
 public Name getBeanHomeName()
Get the name to associate with the enterprise Bean in the JNDI name space. The container will bind the enterprise Bean's home interface with a JNDI name that includes this name as its trailing part. This means that the container can prefix the name returned by getBeanName() with an arbitrary JNDI path.

For example, if getBeanHomeName() returns "bank/Account", the container can bind the Bean's home interface in the JNDI name space with the name "mis/ejb-components/bank/Account".

Returns:
A JNDI name for this enterprise Bean.
 o setBeanHomeName
 public void setBeanHomeName(Name value)
Set the name to associate with the enterprise Bean in the JNDI name space. The container will bind the enterprise Bean's home interface with a JNDI name that includes this name as its trailing part. This means that the container can prefix the name returned by getBeanName() with an arbitrary JNDI path.

Note that using the type java.naming.Name makes the format of the name independent of the syntax used by the actual naming system.

Parameters:
value - A JNDI name for this enterprise Bean.
 o getEnvironmentProperties
 public Properties getEnvironmentProperties()
Get enterprise Bean's environment properties.

Returns:
Enterprise Bean's environment properties.
 o setEnvironmentProperties
 public void setEnvironmentProperties(Properties value)
Set enterprise Bean's environment properties.

Parameters:
value - Enterprise Bean's environment properties.
 o getAccessControlEntries
 public AccessControlEntry[] getAccessControlEntries()
Get the AccessControlEntry objects for the enterprise Bean. An AccessControlEntry object associates an enterprise Bean's method with a list of security Identities that are allowed to invoke the method.

Returns:
An array of AccessControlEntry objects.
 o setAccessControlEntries
 public void setAccessControlEntries(AccessControlEntry values[])
Set the AccessControlEntry objects for the enterprise Bean. An AccessControlEntry object associates an enterprise Bean's method with a list of security Identities that are allowed to invoke the method.

Parameters:
values - An array of AccessControlEntry objects.
 o getAccessControlEntries
 public AccessControlEntry getAccessControlEntries(int index)
Get the AccessControlEntry object at a specified index. An AccessControlEntry object associates an enterprise Bean's method with a list of security Identities that are allowed to invoke the method.

Parameters:
index - An index in the array of Identities.
Returns:
The AccessControlEntry at the index.
 o setAccessControlEntries
 public void setAccessControlEntries(int index,
                                     AccessControlEntry value)
Set the AccessControlEntry object at a specified index. An AccessControlEntry object associates an enterprise Bean's method with a list of security Identities that are allowed to invoke the method.

Parameters:
index - An index in the array of Identities.
value - The AccessControlEntry to set at the index.
 o getControlDescriptors
 public ControlDescriptor[] getControlDescriptors()
Get the array of the enterprise Bean's control descriptors.

Returns:
An array of enterprise Bean's control descriptors.
 o setControlDescriptors
 public void setControlDescriptors(ControlDescriptor value[])
Set the array of the enterprise Bean's control descriptors.

Parameters:
value - An array of the enterprise Bean's control descriptors.
 o getControlDescriptors
 public ControlDescriptor getControlDescriptors(int index)
Get the control descriptor at the specified index.

Parameters:
index - The index of the control descriptor.
Returns:
The control descriptor at the specified index.
 o setControlDescriptors
 public void setControlDescriptors(int index,
                                   ControlDescriptor value)
Set the control descriptor at the specified index.

Parameters:
index - The index of the control descriptor.
value - The control descriptor to be set at the specified index.
 o isReentrant
 public boolean isReentrant()
Test if the enterprise Bean is re-entrant. Only entity Beans can be defined as re-entrant, and it is an error for a session Bean deployment descriptor to return true.

Returns:
True if the Bean is reentrant, false otherwise.
 o getReentrant
 public boolean getReentrant()
This method returns the same result as isReentrant(). It is included for compatibility with the JavaBeans design-pattern.

 o setReentrant
 public void setReentrant(boolean value)
Specify that the enterprise Bean is re-entrant. Only entity Beans can be defined as re-entrant, and it is an error for a session Bean deployment descriptor to attempt to specify that the Bean is re-entrant.

Returns:
True if the Bean is reentrant, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index