|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.assembler.CoreDeploymentInfo
Contains all the information needed by the container for a particular deployment. Some of this information is generic, but this class is largely becoming a dumping ground for information specific to individual containers. This class should be abstracted and subclassed in the individual container packages. The container should be required to provide its own DeploymentInfo implementation, possibly returning it to the assembler and OpenEJB in general via a new accessor method.
Field Summary |
Fields inherited from interface org.openejb.assembler.DeploymentInfo |
AC_CREATE_EJBHOME, TX_MANDITORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS |
Constructor Summary | |
CoreDeploymentInfo()
|
|
CoreDeploymentInfo(String did,
Class homeClass,
Class remoteClass,
Class beanClass,
Class pkClass,
byte componentType)
|
Method Summary | |
void |
addSecurityRoleReference(String securityRoleReference,
String[] physicalRoles)
|
void |
appendMethodPermissions(Method m,
String[] roleNames)
|
Class |
getBeanClass()
Gets the bean's class definition. |
int |
getComponentType()
Gets the type of this bean component. |
Container |
getContainer()
Gets the id of the container this deployed bean is in. |
String |
getDeploymentID()
Gets the id of this bean deployment. |
javax.ejb.EJBHome |
getEJBHome()
|
Class |
getHomeInterface()
Gets the home interface for the bean deployment. |
Context |
getJndiEnc()
|
Class |
getPrimaryKeyClass()
Gets the Class type of the primary key for this bean deployment. |
Class |
getRemoteInterface()
Gets the remote interface for the bean deployment. |
byte |
getTransactionAttribute(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. |
void |
setBeanManagedTransaction(boolean value)
|
void |
setContainer(Container cont)
|
void |
setIsReentrant(boolean reentrant)
|
void |
setJndiEnc(Context cntx)
|
void |
setMethodTransactionAttribute(Method method,
String transAttribute)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoreDeploymentInfo()
public CoreDeploymentInfo(String did, Class homeClass, Class remoteClass, Class beanClass, Class pkClass, byte componentType)
Method Detail |
public void setContainer(Container cont)
public int getComponentType()
DeploymentInfo
STATEFUL
, STATELESS
, BMP_ENTITY
or CMP_ENTITY
.
getComponentType
in interface DeploymentInfo
STATEFUL
, STATELESS
, BMP_ENTITY
or CMP_ENTITY
.public byte getTransactionAttribute(Method method)
DeploymentInfo
TX_NEVER
, TX_NOT_SUPPORTED
, TX_SUPPORTS
, TX_MANDITORY
, TX_REQUIRED
, TX_REQUIRES_NEW
,
getTransactionAttribute
in interface DeploymentInfo
method
- the bean's method for which transaction attribute information is needed
DeploymentInfo.TX_NEVER
,
DeploymentInfo.TX_NOT_SUPPORTED
,
DeploymentInfo.TX_SUPPORTS
,
DeploymentInfo.TX_MANDITORY
,
DeploymentInfo.TX_REQUIRED
,
DeploymentInfo.TX_REQUIRES_NEW
public Container getContainer()
DeploymentInfo
getContainer
in interface DeploymentInfo
Container.getContainerID()
public String getDeploymentID()
DeploymentInfo
getDeploymentID
in interface DeploymentInfo
public boolean isBeanManagedTransaction()
DeploymentInfo
isBeanManagedTransaction
in interface DeploymentInfo
public Class getHomeInterface()
DeploymentInfo
getHomeInterface
in interface DeploymentInfo
EJBHome
public Class getRemoteInterface()
DeploymentInfo
getRemoteInterface
in interface DeploymentInfo
EJBObject
public Class getBeanClass()
DeploymentInfo
getBeanClass
in interface DeploymentInfo
EnterpriseBean
public Class getPrimaryKeyClass()
DeploymentInfo
getPrimaryKeyClass
in interface DeploymentInfo
public javax.ejb.EJBHome getEJBHome()
public void setBeanManagedTransaction(boolean value)
public void setJndiEnc(Context cntx)
public Context getJndiEnc()
public boolean isReentrant()
DeploymentInfo
isReentrant
in interface DeploymentInfo
public void setIsReentrant(boolean reentrant)
public void appendMethodPermissions(Method m, String[] roleNames)
public void addSecurityRoleReference(String securityRoleReference, String[] physicalRoles)
public void setMethodTransactionAttribute(Method method, String transAttribute)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |