|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentInfo
The DeploymentInfo object represents all the data needed by other parts of the container system for a bean that is deployed in the container system. Bean's that are deployed in the container system are refered to as bean deployments or deployments. Each bean deployment will have its own DeploymentInfo object to represent much of the information that was provided to the container by the bean's EJB XML deployment descriptor or by the Deployer at the time of deployment.
DeploymentInfo
Field Summary | |
---|---|
static java.lang.String |
AC_CREATE_EJBHOME
|
static byte |
BMP_ENTITY
The constant that will be returned from the getComponentType
method if this bean is an enitity bean with bean-managed persistence. |
static byte |
CMP_ENTITY
The constant that will be returned from the getComponentType
method if this bean is a enitity bean with container-managed persistence. |
static byte |
MESSAGE_DRIVEN
The constant that will be returned from the getComponentType
method if this bean is a message-driven bean. |
static byte |
STATEFUL
The constant that will be returned from the getComponentType
method if this bean is a stateful session bean. |
static byte |
STATELESS
The constant that will be returned from the getComponentType
method if this bean is a stateless session bean. |
static byte |
TX_MANDITORY
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of Manditory. |
static byte |
TX_NEVER
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of Never. |
static byte |
TX_NOT_SUPPORTED
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of NotSupported. |
static byte |
TX_REQUIRED
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of Required. |
static byte |
TX_REQUIRES_NEW
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of RequiresNew. |
static byte |
TX_SUPPORTS
The constant that will be returned from the getTransactionAttribute
method if the bean's method has the transaction attribute of Supports. |
Method Summary | |
---|---|
java.lang.String[] |
getAuthorizedRoles(java.lang.reflect.Method method)
Gets the roles that are authorised to execute this method. |
java.lang.String[] |
getAuthorizedRoles(java.lang.String action)
|
java.lang.Class |
getBeanClass()
Gets the bean's class definition. |
byte |
getComponentType()
Gets the type of this bean component. |
Container |
getContainer()
Gets the id of the container this deployed bean is in. |
java.lang.Object |
getDeploymentID()
Gets the id of this bean deployment. |
java.lang.Class |
getHomeInterface()
Gets the home interface for the bean deployment. |
java.lang.Class |
getLocalHomeInterface()
|
java.lang.Class |
getLocalInterface()
|
java.lang.Class |
getPrimaryKeyClass()
Gets the Class type of the primary key for this bean deployment. |
java.lang.reflect.Field |
getPrimaryKeyField()
Useful for Container-Managed Persistence (CMP) Entity beans with Simple Primary Keys. |
java.lang.Class |
getRemoteInterface()
Gets the remote interface for the bean deployment. |
byte |
getTransactionAttribute(java.lang.reflect.Method method)
Gets the transaction attribute that must be applied to this method when executing. |
boolean |
isBeanManagedTransaction()
Returns true if this bean deployment has chosen bean-managed transaction demarcation. |
boolean |
isReentrant()
Useful for Container-Managed Persistence (CMP) Entity beans. |
Field Detail |
---|
static final byte TX_NEVER
getTransactionAttribute
method if the bean's method has the transaction attribute of Never.
getTransactionAttribute(Method)
,
"See section 11.6.2.6 Never of the EJB 1.1 specification",
Constant Field Valuesstatic final byte TX_NOT_SUPPORTED
getTransactionAttribute
method if the bean's method has the transaction attribute of NotSupported.
getTransactionAttribute(Method)
,
"See section 11.6.2.1 NotSupported of the EJB 1.1 specification",
Constant Field Valuesstatic final byte TX_SUPPORTS
getTransactionAttribute
method if the bean's method has the transaction attribute of Supports.
getTransactionAttribute(Method)
,
"See section 11.6.2.3 Supports of the EJB 1.1 specification",
Constant Field Valuesstatic final byte TX_MANDITORY
getTransactionAttribute
method if the bean's method has the transaction attribute of Manditory.
getTransactionAttribute(Method)
,
"See section 11.6.2.5 Manditory of the EJB 1.1 specification",
Constant Field Valuesstatic final byte TX_REQUIRED
getTransactionAttribute
method if the bean's method has the transaction attribute of Required.
getTransactionAttribute(Method)
,
"See section 11.6.2.2 Required of the EJB 1.1 specification",
Constant Field Valuesstatic final byte TX_REQUIRES_NEW
getTransactionAttribute
method if the bean's method has the transaction attribute of RequiresNew.
getTransactionAttribute(Method)
,
"See section 11.6.2.4 RequiresNew of the EJB 1.1 specification",
Constant Field Valuesstatic final byte STATEFUL
getComponentType
method if this bean is a stateful session bean.
getComponentType()
,
Constant Field Valuesstatic final byte STATELESS
getComponentType
method if this bean is a stateless session bean.
getComponentType()
,
Constant Field Valuesstatic final byte BMP_ENTITY
getComponentType
method if this bean is an enitity bean with bean-managed persistence.
getComponentType()
,
Constant Field Valuesstatic final byte CMP_ENTITY
getComponentType
method if this bean is a enitity bean with container-managed persistence.
getComponentType()
,
Constant Field Valuesstatic final byte MESSAGE_DRIVEN
getComponentType
method if this bean is a message-driven bean.
getComponentType()
,
Constant Field Valuesstatic final java.lang.String AC_CREATE_EJBHOME
Method Detail |
---|
byte getComponentType()
STATEFUL
, STATELESS
, BMP_ENTITY
or CMP_ENTITY
.
STATEFUL
, STATELESS
, BMP_ENTITY
or CMP_ENTITY
.STATEFUL
,
STATELESS
,
BMP_ENTITY
,
CMP_ENTITY
byte getTransactionAttribute(java.lang.reflect.Method method)
TX_NEVER
, TX_NOT_SUPPORTED
, TX_SUPPORTS
, TX_MANDITORY
, TX_REQUIRED
, TX_REQUIRES_NEW
,
method
- the bean's method for which transaction attribute information is needed
TX_NEVER
,
TX_NOT_SUPPORTED
,
TX_SUPPORTS
,
TX_MANDITORY
,
TX_REQUIRED
,
TX_REQUIRES_NEW
java.lang.String[] getAuthorizedRoles(java.lang.reflect.Method method)
method
- the bean's method for which security information is needed
SecurityService.isCallerAuthorized(java.lang.Object, java.lang.String[])
java.lang.String[] getAuthorizedRoles(java.lang.String action)
Container getContainer()
Container.getContainerID()
java.lang.Object getDeploymentID()
boolean isBeanManagedTransaction()
java.lang.Class getHomeInterface()
EJBHome
java.lang.Class getLocalHomeInterface()
java.lang.Class getLocalInterface()
java.lang.Class getRemoteInterface()
EJBObject
java.lang.Class getBeanClass()
EnterpriseBean
java.lang.Class getPrimaryKeyClass()
java.lang.reflect.Field getPrimaryKeyField()
boolean isReentrant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |