org.objectweb.jonas_ejb.deployment.api
Class SessionStatelessDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
      extended by org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
          extended by org.objectweb.jonas_ejb.deployment.api.BeanDesc
              extended by org.objectweb.jonas_ejb.deployment.api.SessionDesc
                  extended by 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.SessionDesc
transactionType
 
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
 
Fields inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
description, displayName, largeIcon, smallIcon
 
Constructor Summary
SessionStatelessDesc(java.lang.ClassLoader classLoader, Session ses, AssemblyDescriptor asd, JonasSession jSes, JLinkedList jMDRList, java.lang.String filename)
          constructor: called when the DeploymentDescriptor is read.
 
Method Summary
protected  int addEJBMethodDesc(int len)
          Permit Methods addition from subtypes Protected method that need to be overridden in subclasses
 void check()
          Check that the bean descriptor is valid
 java.lang.String getFullWrpSEHomeName()
           
 java.lang.String getFullWrpServiceEndpointName()
           
 java.lang.String getJndiServiceEndpointName()
           
protected  java.lang.Class getParentClass(java.lang.String intfType)
          Returns the parent Class for a method given an interface type.
 java.lang.Class getServiceEndpointClass()
           
 java.lang.String getWrpSEHomeName()
           
 java.lang.String getWrpServiceEndpointName()
           
 boolean isSingleton()
           
protected  void loadExtraClasses(CommonEjb bd, java.lang.ClassLoader classLoader)
          load class for service-endpoint
 
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.SessionDesc
checkTxAttribute, getSessionTimeout, getTransactionType, isBeanManagedTransaction, toString
 
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 org.objectweb.jonas_lib.deployment.api.JndiEnvRefsGroupDesc
getEjbLocalRefDesc, getEjbRefDesc, getEnvEntryDesc, getMessageDestinationRefDesc, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

singleton

protected boolean singleton
Singleton=True if only 1 SessionSwitch (and 1 Remote) when possible.

Constructor Detail

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 classes
ses - XML Element for session standard deployment descriptor
asd - Assembly Descriptor of the EjbJar
jSes - XML Element for session jonas deployment descriptor
filename - bean's jar filename
Throws:
DeploymentDescException - When SessionDesc cannot be instanciated
Method Detail

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 Descriptor
classLoader - 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