org.objectweb.jonas_ejb.deployment.api
Class SessionDesc

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.deployment.api.BeanDesc
        |
        +--org.objectweb.jonas_ejb.deployment.api.SessionDesc
Direct Known Subclasses:
SessionStatefulDesc, SessionStatelessDesc

public abstract class SessionDesc
extends BeanDesc

Base class to hold meta-information related to a session bean.

Author:
Christophe Ney [cney@batisseurs.com]

Field Summary
protected  int transactionType
           
 
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, displayName, ejb10EnvProps, ejbClass, ejbLocalRefDesc, ejbName, ejbRefDesc, envEntryDesc, fullDerivedBeanName, home, jndiName, local, localhome, remote, resourceEnvRefDesc, resourceRefDesc, securityRoleRef, TRANS
 
Constructor Summary
SessionDesc(java.lang.ClassLoader classLoader, org.objectweb.jonas_ejb.deployment.xml.Session ses, org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd, org.objectweb.jonas_ejb.deployment.xml.JonasSession jSes)
          constructor: called when the DeploymentDescriptor is read.
 
Method Summary
 void check()
          Check that the bean descriptor is valid
protected  void checkTxAttribute(MethodDesc md)
          check that trans-attribute is valid for bean
 int getSessionTimeout()
          Get the session timeout value
 int getTransactionType()
          Get session transaction management type.
 boolean isBeanManagedTransaction()
          Returns true if bean managed transaction. (used by JOnAS Server)
 java.lang.String toString()
          String representation of the object for test purpose
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc
addMethodDesc, checkRemoteException, getDeploymentDesc, getDerivedBeanName, getDisplayName, getEjb10Environment, getEjbClass, getEjbLocalRefDesc, getEjbName, getEjbRefDesc, getEnvEntryDesc, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHomeClass, getIdentifierFromEjbName, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getRemoteClass, getResourceEnvRefDesc, getResourceRefDesc, getRoleLink, getSecurityRoleNames, getWrpHandleName, getWrpHomeName, getWrpLocalHomeName, getWrpLocalName, getWrpRemoteName, newMethodDescInstance, setDeploymentDesc, verifyRoleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionType

protected int transactionType
Constructor Detail

SessionDesc

public SessionDesc(java.lang.ClassLoader classLoader,
                   org.objectweb.jonas_ejb.deployment.xml.Session ses,
                   org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor asd,
                   org.objectweb.jonas_ejb.deployment.xml.JonasSession jSes)
            throws DeploymentDescException
constructor: called when the DeploymentDescriptor is read. Currently, called by both GenIC and createContainer.
Method Detail

checkTxAttribute

protected void checkTxAttribute(MethodDesc md)
                         throws DeploymentDescException
check that trans-attribute is valid for bean
Overrides:
checkTxAttribute in class BeanDesc

getTransactionType

public int getTransactionType()
Get session transaction management type.
Returns:
transaction type value within BEAN_TRANSACTION_TYPE,CONTAINER_TRANSACTION_TYPE

isBeanManagedTransaction

public boolean isBeanManagedTransaction()
Returns true if bean managed transaction. (used by JOnAS Server)

getSessionTimeout

public int getSessionTimeout()
Get the session timeout value

check

public void check()
           throws DeploymentDescException
Check that the bean descriptor is valid
Overrides:
check in class BeanDesc
Throws:
DeploymentDescException - thrown for non-valid bean

toString

public java.lang.String toString()
String representation of the object for test purpose
Overrides:
toString in class BeanDesc
Returns:
String representation of this object