Class EjbSessionDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.CommonResourceDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbDescriptor
-
- org.glassfish.ejb.deployment.descriptor.EjbSessionDescriptor
-
- All Implemented Interfaces:
EjbDescriptor
,EjbSessionDescriptor
,JndiNameEnvironment
,NamedDescriptor
,EjbReferenceContainer
,MessageDestinationReferenceContainer
,ResourceEnvReferenceContainer
,ResourceReferenceContainer
,ServiceReferenceContainer
,WritableJndiNameEnvironment
,Serializable
public class EjbSessionDescriptor extends EjbDescriptor implements EjbSessionDescriptor
Objects of this kind represent the deployment information describing a single Session Ejb : { stateful , stateless, singleton }- Author:
- Danny Coward
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EjbSessionDescriptor.AccessTimeoutHolder
static class
EjbSessionDescriptor.ConcurrencyManagementType
-
Field Summary
-
Fields inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
Fields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE
-
Fields inherited from interface com.sun.enterprise.deployment.EjbSessionDescriptor
SINGLETON, STATEFUL, STATELESS, TYPE
-
-
Constructor Summary
Constructors Constructor Description EjbSessionDescriptor()
Default constructor.
-
Method Summary
-
Methods inherited from class org.glassfish.ejb.deployment.descriptor.EjbDescriptor
addAllInterfaceMethodsIn, addAroundInvokeDescriptor, addAroundTimeoutDescriptor, addEjbDescriptor, addEjbReferenceDescriptor, addEjbReferencer, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addFrameworkInterceptor, addInterceptorClass, addIORConfigurationDescriptor, addLocalBusinessClassName, addMessageDestinationReferenceDescriptor, addMethodLevelChain, addNoInterfaceLocalBeanClass, addPermissionedMethod, addPostConstructDescriptor, addPreDestroyDescriptor, addRemoteBusinessClassName, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addRoleReference, addScheduledTimerDescriptor, addScheduledTimerDescriptorFromDD, addServiceReferenceDescriptor, allMechanismsRequireSSL, appendToInterceptorChain, applyDefaultClassToLifecycleMethods, applyInterceptors, getAllEjbReferencers, getAllResourcesDescriptors, getAllResourcesDescriptors, getApplication, getAroundInvokeDescriptorByClass, getAroundInvokeDescriptors, getAroundInvokeInterceptors, getAroundTimeoutDescriptorByClass, getAroundTimeoutDescriptors, getAroundTimeoutInterceptors, getBusinessMethodDescriptorFor, getCallbackInterceptors, getClientBusinessMethodDescriptors, getContainerTransaction, getContainerTransactionFor, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getEJBLocalObjectImplClassName, getEJBObjectImplClassName, getEjbReference, getEjbReferenceDescriptors, getEjbTimeoutMethod, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getExcludedMethodDescriptors, getFieldDescriptors, getFields, getFrameworkInterceptors, getHomeClassName, getIASEjbExtraDescriptors, getInjectableResourcesByClass, getInjectionInfoByClass, getInterceptorChain, getInterceptorClasses, getInterceptorClassNames, getIORConfigurationDescriptors, getJndiName, getLifecycleCallbackDescriptors, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getLocalHomeImplClassName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getMethodContainerTransactions, getMethodDescriptors, getMethodInterceptorsMap, getMethodPermissionsFor, getMethodPermissionsFromDD, getMethods, getMethods, getNoInterfaceLocalBeanClasses, getOptionalLocalBusinessMethods, getPermissionedMethodsByPermission, getPermissionedRoles, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getRemoteBusinessClassNames, getRemoteClassName, getRemoteHomeImplClassName, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getResourceReferenceDescriptors, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getScheduledTimerDescriptors, getSecurityBusinessMethodDescriptors, getSecurityIdentityDescription, getServiceReferenceByName, getServiceReferenceDescriptors, getStyledPermissionedMethodsByPermission, getTransactionMethodDescriptors, getTransactionMethods, getTransactionType, getTxBusinessMethodDescriptors, getUncheckedMethodDescriptors, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasAroundInvokeMethod, hasAroundTimeoutMethod, hasInterceptorClass, hasPostConstructMethod, hasPreDestroyMethod, hasResolvedResourceReferences, hasScheduledTimerMethodFromDD, hasWebServiceEndpointInterface, isDistributedTransactionScope, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, isTimedObject, isUsesDefaultTransaction, notifyNewModule, removeEjbReferenceDescriptor, removeEjbReferencer, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removePermissionedMethod, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeRoleReference, removeServiceReferenceDescriptor, setContainerTransactionFor, setDistributedTransactionScope, setEjbBundleDescriptor, setEjbClassName, setEJBLocalObjectImplClassName, setEJBObjectImplClassName, setEjbTimeoutMethod, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setLocalHomeImplClassName, setMappedName, setMethodContainerTransactions, setRemoteClassName, setRemoteHomeImplClassName, setRunAsIdentity, setSecurityIdentityDescription, setUniqueId, setUsesCallerIdentity, setUsesDefaultTransaction, setWebServiceEndpointInterfaceName, visit, visit
-
Methods inherited from class com.sun.enterprise.deployment.CommonResourceDescriptor
getResourceDescriptor
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri
-
Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.EjbDescriptor
addEjbReferencer, addFrameworkInterceptor, addInterceptorClass, addMethodLevelChain, addPermissionedMethod, addRoleReference, allMechanismsRequireSSL, appendToInterceptorChain, getApplication, getEjbBundleDescriptor, getEjbClassName, getEjbImplClassName, getHomeClassName, getIORConfigurationDescriptors, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getMethodDescriptors, getMethodPermissionsFor, getMethodPermissionsFromDD, getPermissionedRoles, getRemoteBusinessClassNames, getRemoteClassName, getRoleReferenceByName, getRoleReferences, getRunAsIdentity, getSecurityBusinessMethodDescriptors, getTransactionType, getUniqueId, getUsesCallerIdentity, getWebServiceEndpointInterfaceName, hasInterceptorClass, hasWebServiceEndpointInterface, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, notifyNewModule, removeEjbReferencer, setRunAsIdentity, setUniqueId, setUsesCallerIdentity, setWebServiceEndpointInterfaceName
-
Methods inherited from interface com.sun.enterprise.deployment.types.EjbReferenceContainer
addEjbReferenceDescriptor, getEjbReference, getEjbReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.JndiNameEnvironment
getAllResourcesDescriptors, getAllResourcesDescriptors, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceDescriptors, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer
addMessageDestinationReferenceDescriptor, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, removeMessageDestinationReferenceDescriptor
-
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getJndiName, getName, setJndiName
-
Methods inherited from interface com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer
addResourceEnvReferenceDescriptor, getResourceEnvReferenceByName, getResourceEnvReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.ResourceReferenceContainer
addResourceReferenceDescriptor, getResourceReferenceByName, getResourceReferenceDescriptors
-
Methods inherited from interface com.sun.enterprise.deployment.types.ServiceReferenceContainer
addServiceReferenceDescriptor, getServiceReferenceByName, getServiceReferenceDescriptors, removeServiceReferenceDescriptor
-
Methods inherited from interface com.sun.enterprise.deployment.WritableJndiNameEnvironment
addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceDescriptor, addResourceEnvReferenceDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeMessageDestinationReferenceDescriptor, removeResourceDescriptor, removeResourceEnvReferenceDescriptor, removeResourceReferenceDescriptor, removeServiceReferenceDescriptor
-
-
-
-
Method Detail
-
getEjbTypeForDisplay
public String getEjbTypeForDisplay()
- Specified by:
getEjbTypeForDisplay
in interfaceEjbDescriptor
- Specified by:
getEjbTypeForDisplay
in classEjbDescriptor
-
isPassivationCapable
public boolean isPassivationCapable()
- Specified by:
isPassivationCapable
in interfaceEjbSessionDescriptor
-
setPassivationCapable
public void setPassivationCapable(boolean passivationCapable)
-
isPassivationCapableSet
public boolean isPassivationCapableSet()
-
getType
public String getType()
Returns the type of this bean - always "Session".- Specified by:
getType
in interfaceEjbDescriptor
-
getSessionType
public String getSessionType()
Returns the string STATELESS or STATEFUL according as to whether the bean is stateless or stateful.- Specified by:
getSessionType
in interfaceEjbSessionDescriptor
-
setSessionType
public void setSessionType(String sessionType)
Accepts the Strings STATELESS / STATEFUL / SINGLETON
-
isSessionTypeSet
public boolean isSessionTypeSet()
Useful for certain annotation / .xml processing. ejb-jar.xml might not setif it's only being used for sparse overriding. - Returns:
-
isClustered
public boolean isClustered()
- Specified by:
isClustered
in interfaceEjbSessionDescriptor
-
setClustered
public void setClustered(boolean clustered)
-
getClusteredKeyValue
public String getClusteredKeyValue()
- Specified by:
getClusteredKeyValue
in interfaceEjbSessionDescriptor
-
setClusteredKeyValue
public void setClusteredKeyValue(String clusteredKeyValue)
-
getClusteredLockType
public DistributedLockType getClusteredLockType()
- Specified by:
getClusteredLockType
in interfaceEjbSessionDescriptor
-
setClusteredLockType
public void setClusteredLockType(DistributedLockType lockType)
-
dontCallPostConstructOnAttach
public boolean dontCallPostConstructOnAttach()
-
setDontCallPostConstructOnAttach
public void setDontCallPostConstructOnAttach(boolean dontCallPostConstructOnAttach)
-
setDontCallPreDestroyOnDetach
public void setDontCallPreDestroyOnDetach(boolean dontCallPreDestroyOnDetach)
-
dontCallPreDestroyOnDetach
public boolean dontCallPreDestroyOnDetach()
-
setType
public void setType(String type)
Sets my type- Specified by:
setType
in classEjbDescriptor
-
setTransactionType
public void setTransactionType(String transactionType)
Sets the transaction type for this bean. Must be either BEAN_TRANSACTION_TYPE or CONTAINER_TRANSACTION_TYPE.- Specified by:
setTransactionType
in classEjbDescriptor
-
isStateless
public boolean isStateless()
Returns true if I am describing a stateless session bean.- Specified by:
isStateless
in interfaceEjbSessionDescriptor
-
isStateful
public boolean isStateful()
- Specified by:
isStateful
in interfaceEjbSessionDescriptor
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceEjbSessionDescriptor
-
hasAsynchronousMethods
public boolean hasAsynchronousMethods()
-
addAsynchronousMethod
public void addAsynchronousMethod(MethodDescriptor m)
-
getAsynchronousMethods
public List<MethodDescriptor> getAsynchronousMethods()
-
isAsynchronousMethod
public boolean isAsynchronousMethod(Method m)
-
addStatefulTimeoutDescriptor
public void addStatefulTimeoutDescriptor(TimeoutValueDescriptor timeout)
-
hasStatefulTimeout
public boolean hasStatefulTimeout()
-
getStatefulTimeoutValue
public Long getStatefulTimeoutValue()
-
getStatefulTimeoutUnit
public TimeUnit getStatefulTimeoutUnit()
-
hasRemoveMethods
public boolean hasRemoveMethods()
- Specified by:
hasRemoveMethods
in interfaceEjbSessionDescriptor
-
getRemovalInfo
public EjbRemovalInfo getRemovalInfo(MethodDescriptor method)
- Returns:
- remove method info for the given method or null if the given method is not a remove method for this stateful session bean.
-
getAllRemovalInfo
public Set<EjbRemovalInfo> getAllRemovalInfo()
-
getRemoveMethodDescriptors
public Set<MethodDescriptor> getRemoveMethodDescriptors()
- Specified by:
getRemoveMethodDescriptors
in interfaceEjbSessionDescriptor
-
addRemoveMethod
public void addRemoveMethod(EjbRemovalInfo removalInfo)
-
hasInitMethods
public boolean hasInitMethods()
-
getInitMethods
public Set<EjbInitInfo> getInitMethods()
-
addInitMethod
public void addInitMethod(EjbInitInfo initInfo)
-
getPostActivateDescriptors
public Set<LifecycleCallbackDescriptor> getPostActivateDescriptors()
-
addPostActivateDescriptor
public void addPostActivateDescriptor(LifecycleCallbackDescriptor postActivateDesc)
-
getPostActivateDescriptorByClass
public LifecycleCallbackDescriptor getPostActivateDescriptorByClass(String className)
-
hasPostActivateMethod
public boolean hasPostActivateMethod()
-
getPrePassivateDescriptors
public Set<LifecycleCallbackDescriptor> getPrePassivateDescriptors()
-
addPrePassivateDescriptor
public void addPrePassivateDescriptor(LifecycleCallbackDescriptor prePassivateDesc)
-
getPrePassivateDescriptorByClass
public LifecycleCallbackDescriptor getPrePassivateDescriptorByClass(String className)
-
hasPrePassivateMethod
public boolean hasPrePassivateMethod()
-
getPossibleTransactionAttributes
public Vector getPossibleTransactionAttributes()
Description copied from class:EjbDescriptor
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction- Overrides:
getPossibleTransactionAttributes
in classEjbDescriptor
-
getContainerFactoryQualifier
public String getContainerFactoryQualifier()
- Specified by:
getContainerFactoryQualifier
in classEjbDescriptor
-
addAfterBeginDescriptor
public void addAfterBeginDescriptor(MethodDescriptor m)
-
addBeforeCompletionDescriptor
public void addBeforeCompletionDescriptor(MethodDescriptor m)
-
addAfterCompletionDescriptor
public void addAfterCompletionDescriptor(MethodDescriptor m)
-
setAfterBeginMethodIfNotSet
public void setAfterBeginMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @AfterBegin.
-
getAfterBeginMethod
public MethodDescriptor getAfterBeginMethod()
Returns the Method annotated @AfterBegin.
-
setBeforeCompletionMethodIfNotSet
public void setBeforeCompletionMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @BeforeCompletion.
-
getBeforeCompletionMethod
public MethodDescriptor getBeforeCompletionMethod()
Returns the Method annotated @AfterBegin.
-
setAfterCompletionMethodIfNotSet
public void setAfterCompletionMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @AfterCompletion.
-
getAfterCompletionMethod
public MethodDescriptor getAfterCompletionMethod()
Returns the Method annotated @AfterCompletion.
-
getInitOnStartup
public boolean getInitOnStartup()
-
setInitOnStartup
public void setInitOnStartup(boolean flag)
-
setInitOnStartupIfNotAlreadySet
public void setInitOnStartupIfNotAlreadySet(boolean flag)
-
getDependsOn
public String[] getDependsOn()
-
hasDependsOn
public boolean hasDependsOn()
-
setDependsOn
public void setDependsOn(String[] dep)
-
setDependsOnIfNotSet
public void setDependsOnIfNotSet(String[] dep)
-
getConcurrencyManagementType
public EjbSessionDescriptor.ConcurrencyManagementType getConcurrencyManagementType()
-
hasContainerManagedConcurrency
public boolean hasContainerManagedConcurrency()
-
hasBeanManagedConcurrency
public boolean hasBeanManagedConcurrency()
-
setConcurrencyManagementType
public void setConcurrencyManagementType(EjbSessionDescriptor.ConcurrencyManagementType type)
-
setConcurrencyManagementTypeIfNotSet
public void setConcurrencyManagementTypeIfNotSet(EjbSessionDescriptor.ConcurrencyManagementType type)
-
addConcurrentMethodFromXml
public void addConcurrentMethodFromXml(ConcurrentMethodDescriptor concMethod)
-
addReadLockMethod
public void addReadLockMethod(MethodDescriptor methodDescriptor)
-
addWriteLockMethod
public void addWriteLockMethod(MethodDescriptor methodDescriptor)
-
getReadLockMethods
public List<MethodDescriptor> getReadLockMethods()
-
getWriteLockMethods
public List<MethodDescriptor> getWriteLockMethods()
-
getReadAndWriteLockMethods
public List<MethodDescriptor> getReadAndWriteLockMethods()
-
addAccessTimeoutMethod
public void addAccessTimeoutMethod(MethodDescriptor methodDescriptor, long value, TimeUnit unit)
-
getAccessTimeoutMethods
public List<MethodDescriptor> getAccessTimeoutMethods()
-
getAccessTimeoutInfo
public List<EjbSessionDescriptor.AccessTimeoutHolder> getAccessTimeoutInfo()
-
print
public void print(StringBuilder toStringBuilder)
Returns a formatted String of the attributes of this object.- Overrides:
print
in classEjbDescriptor
-
getPortableJndiName
public String getPortableJndiName(String clientViewType)
Return the fully-qualified portable JNDI name for a given client view (Remote, Local, or no-interface).- Specified by:
getPortableJndiName
in interfaceEjbSessionDescriptor
-
-