|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.EjbAbstractDescriptor
com.sun.enterprise.deployment.EjbDescriptor
com.sun.enterprise.deployment.EjbSessionDescriptor
public class EjbSessionDescriptor
Objects of this kind represent the deployment information describing a single Session Ejb : { stateful , stateless, singleton }
| Nested Class Summary | |
|---|---|
static class |
EjbSessionDescriptor.AccessTimeoutHolder
|
static class |
EjbSessionDescriptor.ConcurrencyManagementType
|
| Field Summary | |
|---|---|
static java.lang.String |
SINGLETON
|
static java.lang.String |
STATEFUL
Idicates statefullness of a session ejb. |
static java.lang.String |
STATELESS
The String to indicate stalessness. |
static java.lang.String |
TYPE
The Session type String. |
| Fields inherited from class com.sun.enterprise.deployment.EjbDescriptor |
|---|
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE, DISTRIBUTED_TRANSACTION_SCOPE, isDistributedTxScope, LOCAL_TRANSACTION_SCOPE, runAsIdentity, securityIdentityDescription, transactionType, usesCallerIdentity, usesDefaultTransaction |
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
EjbSessionDescriptor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addAccessTimeoutMethod(MethodDescriptor methodDescriptor,
long value,
java.util.concurrent.TimeUnit unit)
|
void |
addAfterBeginDescriptor(MethodDescriptor m)
|
void |
addAfterCompletionDescriptor(MethodDescriptor m)
|
void |
addAsynchronousMethod(MethodDescriptor m)
|
void |
addBeforeCompletionDescriptor(MethodDescriptor m)
|
void |
addConcurrentMethodFromXml(ConcurrentMethodDescriptor concMethod)
|
void |
addInitMethod(EjbInitInfo initInfo)
|
void |
addPostActivateDescriptor(LifecycleCallbackDescriptor postActivateDesc)
|
void |
addPrePassivateDescriptor(LifecycleCallbackDescriptor prePassivateDesc)
|
void |
addReadLockMethod(MethodDescriptor methodDescriptor)
|
void |
addRemoveMethod(EjbRemovalInfo removalInfo)
|
void |
addStatefulTimeoutDescriptor(TimeoutValueDescriptor timeout)
|
void |
addWriteLockMethod(MethodDescriptor methodDescriptor)
|
java.util.List<EjbSessionDescriptor.AccessTimeoutHolder> |
getAccessTimeoutInfo()
|
java.util.List<MethodDescriptor> |
getAccessTimeoutMethods()
|
MethodDescriptor |
getAfterBeginMethod()
Returns the Method annotated @AfterBegin. |
MethodDescriptor |
getAfterCompletionMethod()
Returns the Method annotated @AfterCompletion. |
java.util.Set<EjbRemovalInfo> |
getAllRemovalInfo()
|
java.util.List<MethodDescriptor> |
getAsynchronousMethods()
|
MethodDescriptor |
getBeforeCompletionMethod()
Returns the Method annotated @AfterBegin. |
EjbSessionDescriptor.ConcurrencyManagementType |
getConcurrencyManagementType()
|
java.lang.String[] |
getDependsOn()
|
java.util.Set<EjbInitInfo> |
getInitMethods()
|
boolean |
getInitOnStartup()
|
java.lang.String |
getPortableJndiName(java.lang.String clientViewType)
Return the fully-qualified portable JNDI name for a given client view (Remote, Local, or no-interface). |
java.util.Vector |
getPossibleTransactionAttributes()
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. |
LifecycleCallbackDescriptor |
getPostActivateDescriptorByClass(java.lang.String className)
|
java.util.Set<LifecycleCallbackDescriptor> |
getPostActivateDescriptors()
|
LifecycleCallbackDescriptor |
getPrePassivateDescriptorByClass(java.lang.String className)
|
java.util.Set<LifecycleCallbackDescriptor> |
getPrePassivateDescriptors()
|
java.util.List<MethodDescriptor> |
getReadAndWriteLockMethods()
|
java.util.List<MethodDescriptor> |
getReadLockMethods()
|
EjbRemovalInfo |
getRemovalInfo(MethodDescriptor method)
|
java.lang.String |
getSessionType()
Returns the string STATELESS or STATEFUL according as to whether the bean is stateless or stateful. |
java.util.concurrent.TimeUnit |
getStatefulTimeoutUnit()
|
java.lang.Long |
getStatefulTimeoutValue()
|
java.lang.String |
getType()
Returns the type of this bean - always "Session". |
java.util.List<MethodDescriptor> |
getWriteLockMethods()
|
boolean |
hasAsynchronousMethods()
|
boolean |
hasBeanManagedConcurrency()
|
boolean |
hasContainerManagedConcurrency()
|
boolean |
hasDependsOn()
|
boolean |
hasInitMethods()
|
boolean |
hasPostActivateMethod()
|
boolean |
hasPrePassivateMethod()
|
boolean |
hasRemoveMethods()
|
boolean |
hasStatefulTimeout()
|
boolean |
isAsynchronousMethod(java.lang.reflect.Method m)
|
boolean |
isSessionTypeSet()
Useful for certain annotation / .xml processing. |
boolean |
isSingleton()
|
boolean |
isStateful()
|
boolean |
isStateless()
Returns true if I am describing a stateless session bean. |
void |
print(java.lang.StringBuffer toStringBuffer)
Returns a formatted String of the attributes of this object. |
void |
setAfterBeginMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @AfterBegin. |
void |
setAfterCompletionMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @AfterCompletion. |
void |
setBeforeCompletionMethodIfNotSet(MethodDescriptor m)
Set the Method annotated @BeforeCompletion. |
void |
setConcurrencyManagementType(EjbSessionDescriptor.ConcurrencyManagementType type)
|
void |
setConcurrencyManagementTypeIfNotSet(EjbSessionDescriptor.ConcurrencyManagementType type)
|
void |
setDependsOn(java.lang.String[] dep)
|
void |
setDependsOnIfNotSet(java.lang.String[] dep)
|
void |
setInitOnStartup(boolean flag)
|
void |
setInitOnStartupIfNotAlreadySet(boolean flag)
|
void |
setSessionType(java.lang.String sessionType)
Accepts the Strings STATELESS / STATEFUL / SINGLETON |
void |
setStatefulTimeout(java.lang.Long value,
java.util.concurrent.TimeUnit unit)
|
void |
setTransactionType(java.lang.String transactionType)
Sets the transaction type for this bean. |
void |
setType(java.lang.String type)
Sets my type |
| Methods inherited from class com.sun.enterprise.deployment.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.NamedDescriptor |
|---|
getName |
| Field Detail |
|---|
public static final java.lang.String TYPE
public static final java.lang.String STATELESS
public static final java.lang.String STATEFUL
public static final java.lang.String SINGLETON
| Constructor Detail |
|---|
public EjbSessionDescriptor()
| Method Detail |
|---|
public java.lang.String getType()
getType in class EjbAbstractDescriptorpublic java.lang.String getSessionType()
public void setSessionType(java.lang.String sessionType)
public boolean isSessionTypeSet()
public void setType(java.lang.String type)
setType in class EjbAbstractDescriptorpublic void setTransactionType(java.lang.String transactionType)
setTransactionType in class EjbDescriptorpublic boolean isStateless()
public boolean isStateful()
public boolean isSingleton()
public boolean hasAsynchronousMethods()
public void addAsynchronousMethod(MethodDescriptor m)
public java.util.List<MethodDescriptor> getAsynchronousMethods()
public boolean isAsynchronousMethod(java.lang.reflect.Method m)
public void addStatefulTimeoutDescriptor(TimeoutValueDescriptor timeout)
public void setStatefulTimeout(java.lang.Long value,
java.util.concurrent.TimeUnit unit)
public boolean hasStatefulTimeout()
public java.lang.Long getStatefulTimeoutValue()
public java.util.concurrent.TimeUnit getStatefulTimeoutUnit()
public boolean hasRemoveMethods()
public EjbRemovalInfo getRemovalInfo(MethodDescriptor method)
public java.util.Set<EjbRemovalInfo> getAllRemovalInfo()
public void addRemoveMethod(EjbRemovalInfo removalInfo)
public boolean hasInitMethods()
public java.util.Set<EjbInitInfo> getInitMethods()
public void addInitMethod(EjbInitInfo initInfo)
public java.util.Set<LifecycleCallbackDescriptor> getPostActivateDescriptors()
public void addPostActivateDescriptor(LifecycleCallbackDescriptor postActivateDesc)
public LifecycleCallbackDescriptor getPostActivateDescriptorByClass(java.lang.String className)
public boolean hasPostActivateMethod()
public java.util.Set<LifecycleCallbackDescriptor> getPrePassivateDescriptors()
public void addPrePassivateDescriptor(LifecycleCallbackDescriptor prePassivateDesc)
public LifecycleCallbackDescriptor getPrePassivateDescriptorByClass(java.lang.String className)
public boolean hasPrePassivateMethod()
public java.util.Vector getPossibleTransactionAttributes()
EjbDescriptor
getPossibleTransactionAttributes in class EjbDescriptorpublic void addAfterBeginDescriptor(MethodDescriptor m)
public void addBeforeCompletionDescriptor(MethodDescriptor m)
public void addAfterCompletionDescriptor(MethodDescriptor m)
public void setAfterBeginMethodIfNotSet(MethodDescriptor m)
public MethodDescriptor getAfterBeginMethod()
public void setBeforeCompletionMethodIfNotSet(MethodDescriptor m)
public MethodDescriptor getBeforeCompletionMethod()
public void setAfterCompletionMethodIfNotSet(MethodDescriptor m)
public MethodDescriptor getAfterCompletionMethod()
public boolean getInitOnStartup()
public void setInitOnStartup(boolean flag)
public void setInitOnStartupIfNotAlreadySet(boolean flag)
public java.lang.String[] getDependsOn()
public boolean hasDependsOn()
public void setDependsOn(java.lang.String[] dep)
public void setDependsOnIfNotSet(java.lang.String[] dep)
public EjbSessionDescriptor.ConcurrencyManagementType getConcurrencyManagementType()
public boolean hasContainerManagedConcurrency()
public boolean hasBeanManagedConcurrency()
public void setConcurrencyManagementType(EjbSessionDescriptor.ConcurrencyManagementType type)
public void setConcurrencyManagementTypeIfNotSet(EjbSessionDescriptor.ConcurrencyManagementType type)
public void addConcurrentMethodFromXml(ConcurrentMethodDescriptor concMethod)
public void addReadLockMethod(MethodDescriptor methodDescriptor)
public void addWriteLockMethod(MethodDescriptor methodDescriptor)
public java.util.List<MethodDescriptor> getReadLockMethods()
public java.util.List<MethodDescriptor> getWriteLockMethods()
public java.util.List<MethodDescriptor> getReadAndWriteLockMethods()
public void addAccessTimeoutMethod(MethodDescriptor methodDescriptor,
long value,
java.util.concurrent.TimeUnit unit)
public java.util.List<MethodDescriptor> getAccessTimeoutMethods()
public java.util.List<EjbSessionDescriptor.AccessTimeoutHolder> getAccessTimeoutInfo()
public void print(java.lang.StringBuffer toStringBuffer)
print in class EjbDescriptorpublic java.lang.String getPortableJndiName(java.lang.String clientViewType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||