org.objectweb.jonas_ejb.deployment.api
Class SessionStatelessDesc
java.lang.Object
org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
org.objectweb.jonas_ejb.deployment.api.BeanDesc
org.objectweb.jonas_ejb.deployment.api.SessionDesc
org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc
- All Implemented Interfaces:
- DescriptionGroup, JndiEnvRefsGroup
public class SessionStatelessDesc
- extends SessionDesc
class to hold meta-information related to a stateless session bean.
- Author:
- Christophe Ney [cney@batisseurs.com] : Initial developer, Helene Joanin
Field Summary |
protected boolean |
singleton
Singleton=True if only 1 SessionSwitch (and 1 Remote) when possible. |
Fields inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc |
BEAN_TRANSACTION_TYPE, beanIdentification, bf, cacheMax, clusterHomeDistributor, clusterRemoteDistributor, clusterReplicated, CONTAINER_TRANSACTION_TYPE, deploymentDesc, derivedBeanName, ejb10EnvProps, ejbClass, ejbName, ejbTimeoutSignature, fullDerivedBeanName, GENERATED_PREFIX, home, jndiLocalName, jndiName, local, localhome, logger, poolMin, remote, securityRoleRefDescList, timerTxAttribute, TRANS |
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.BeanDesc |
addMethodDesc, checkRemoteException, checkRunAsMapping, checkValidTypesForRmi, getBeanFactory, getCacheMax, getClusterHomeDistributor, getClusterRemoteDistributor, getDeploymentDesc, getDerivedBeanName, getEjb10Environment, getEjbClass, getEjbName, getEjbTimeoutSignature, getFullDerivedBeanName, getFullWrpHandleName, getFullWrpHomeName, getFullWrpLocalHomeName, getFullWrpLocalName, getFullWrpRemoteName, getHashCodeForIdentifier, getHomeClass, getIdentifier, getJndiLocalName, getJndiName, getLocalClass, getLocalHomeClass, getMethodDesc, getMethodDesc, getMethodDescIterator, getPoolMin, getRemoteClass, getRunAsPrincipalName, getRunAsRole, getSasComponent, getSecurityRoleRefDescList, getTimerTxAttribute, getWrpHandleName, getWrpHomeName, getWrpLocalHomeName, getWrpLocalName, getWrpRemoteName, hasDefinedLocalInterface, isClusterReplicated, newMethodDescInstance, setBeanFactory, setClusterReplicated, setDeploymentDesc, setSasComponent, verifyRoleName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
singleton
protected boolean singleton
- Singleton=True if only 1 SessionSwitch (and 1 Remote) when possible.
SessionStatelessDesc
public SessionStatelessDesc(java.lang.ClassLoader classLoader,
Session ses,
AssemblyDescriptor asd,
JonasSession jSes,
JLinkedList jMDRList,
java.lang.String filename)
throws DeploymentDescException
- constructor: called when the DeploymentDescriptor is read. Currently,
called by both GenIC and createContainer.
- Parameters:
classLoader
- ClassLoader to load Bean's classesses
- XML Element for session standard deployment descriptorasd
- Assembly Descriptor of the EjbJarjSes
- XML Element for session jonas deployment descriptorfilename
- bean's jar filename
- Throws:
DeploymentDescException
- When SessionDesc cannot be instanciated
check
public void check()
throws DeploymentDescException
- Check that the bean descriptor is valid
- Overrides:
check
in class SessionDesc
- Throws:
DeploymentDescException
- thrown for non-valid bean
addEJBMethodDesc
protected int addEJBMethodDesc(int len)
throws DeploymentDescException
- Permit Methods addition from subtypes Protected method that need to be
overridden in subclasses
- Overrides:
addEJBMethodDesc
in class BeanDesc
- Parameters:
len
- method array length
- Returns:
- new len value
- Throws:
DeploymentDescException
- when java reflection cannot be used on
classes
loadExtraClasses
protected void loadExtraClasses(CommonEjb bd,
java.lang.ClassLoader classLoader)
throws DeploymentDescException
- load class for service-endpoint
- Overrides:
loadExtraClasses
in class BeanDesc
- Parameters:
bd
- XML Element representing EJB DescriptorclassLoader
- ClassLoader used to load classes
- Throws:
DeploymentDescException
- when a class cannot be loaded
getParentClass
protected java.lang.Class getParentClass(java.lang.String intfType)
throws DeploymentDescException
- Returns the parent Class for a method given an interface type.
- Overrides:
getParentClass
in class BeanDesc
- Parameters:
intfType
- type of the interface (Home/Remote/LocalHome/Local or
ServiceEndpoint)
- Returns:
- the parent class for a method given an interface type
- Throws:
DeploymentDescException
- when intfType is unknown
getServiceEndpointClass
public java.lang.Class getServiceEndpointClass()
- Returns:
- Returns the serviceEndpointClass.
getJndiServiceEndpointName
public java.lang.String getJndiServiceEndpointName()
- Returns:
- jndi name where ServiceEndpoint interface will be binded
getFullWrpServiceEndpointName
public java.lang.String getFullWrpServiceEndpointName()
- Returns:
- Returns the fullWrpServiceEndpointName.
getWrpServiceEndpointName
public java.lang.String getWrpServiceEndpointName()
- Returns:
- Returns the wrpServiceEndpointName.
getFullWrpSEHomeName
public java.lang.String getFullWrpSEHomeName()
- Returns:
- Returns the fullWrpSEHomeName.
getWrpSEHomeName
public java.lang.String getWrpSEHomeName()
- Returns:
- Returns the wrpSEHomeName.
isSingleton
public boolean isSingleton()
- Returns:
- true for singleton session bean