com.sun.enterprise.deployment
Class EjbDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.EjbAbstractDescriptor
                  extended by com.sun.enterprise.deployment.EjbDescriptor
All Implemented Interfaces:
JndiNameEnvironment, NamedDescriptor, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, WritableJndiNameEnvironment, java.io.Serializable
Direct Known Subclasses:
DummyEjbDescriptor, EjbEntityDescriptor, EjbMessageBeanDescriptor, EjbSessionDescriptor

public abstract class EjbDescriptor
extends EjbAbstractDescriptor
implements WritableJndiNameEnvironment, EjbReferenceContainer, ResourceEnvReferenceContainer, ResourceReferenceContainer, ServiceReferenceContainer, MessageDestinationReferenceContainer

This abstract class encapsulates the meta-information describing Entity, Session and MessageDriven EJBs.

Author:
Danny Coward, Sanjeev Krishnan
See Also:
Serialized Form

Field Summary
static java.lang.String BEAN_TRANSACTION_TYPE
          Indicates the bean will manage its own transactions.
static java.lang.String CONTAINER_TRANSACTION_TYPE
          Indicates the bean expects the server to manage its transactions.
static java.lang.String DISTRIBUTED_TRANSACTION_SCOPE
           
protected  boolean isDistributedTxScope
           
static java.lang.String LOCAL_TRANSACTION_SCOPE
           
protected  RunAsIdentityDescriptor runAsIdentity
           
protected  java.lang.String securityIdentityDescription
           
protected  java.lang.String transactionType
           
protected  java.lang.Boolean usesCallerIdentity
           
protected  boolean 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
protected EjbDescriptor()
          Default constructor.
  EjbDescriptor(EjbDescriptor other)
           
 
Method Summary
protected  void addAllInterfaceMethodsIn(java.util.Collection methodDescriptors, java.lang.Class c, java.lang.String methodIntf)
           
 void addAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)
           
 void addAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)
           
 void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
          Adds the specified data-source-definition to the receiver.
 void addEjbDescriptor(EjbDescriptor other)
           
 void addEjbReferenceDescriptor(EjbReference ejbReference)
          Adds a reference to another ejb to me.
 void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
           
 void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
           
 void addEnvironmentProperty(EnvironmentProperty environmentProperty)
          Add the supplied environment property to the ejb descriptor's list.
 void addFrameworkInterceptor(InterceptorDescriptor interceptor)
           
 void addInterceptorClass(EjbInterceptor interceptor)
           
 void addIORConfigurationDescriptor(EjbIORConfigurationDescriptor val)
           
 void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
          Adds the specified JMS destination reference to the receiver.
 void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
          Adds the specified message destination reference to the receiver.
 void addMethodLevelChain(java.util.List<EjbInterceptor> chain, java.lang.reflect.Method m, boolean aroundInvoke)
           
 void addPermissionedMethod(MethodPermission mp, MethodDescriptor md)
          Add a new method permission to a method or a set of methods
 void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
          Adds the specified post-construct descriptor to the receiver.
 void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
          Adds the specified pre-destroy descriptor to the receiver.
 void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
          Adds a resource reference to me.
 void addRoleReference(RoleReference roleReference)
          Adds a role reference.
 void addScheduledTimerDescriptor(ScheduledTimerDescriptor scheduleDescriptor)
           
 void addScheduledTimerDescriptorFromDD(ScheduledTimerDescriptor scheduleDescriptor)
          Special method for overrides because more than one schedule can be specified on a single method
 void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
          Adds the specified service reference to the receiver.
 boolean allMechanismsRequireSSL()
          This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.
 void appendToInterceptorChain(java.util.List<EjbInterceptor> chain)
           
 void applyDefaultClassToLifecycleMethods()
          Since ejb-class is optional, in some cases the lifecycle-class for AroundInvoke, PostConstruct, etc.
 void applyInterceptors(InterceptorBindingTranslator bindingTranslator)
          Derive all interceptors that are applicable to this bean.
 java.util.Set getAllEjbReferencers()
           
 Application getApplication()
          Gets the application to which this ejb descriptor belongs.
 LifecycleCallbackDescriptor getAroundInvokeDescriptorByClass(java.lang.String className)
           
 java.util.Set<LifecycleCallbackDescriptor> getAroundInvokeDescriptors()
           
 java.util.List<EjbInterceptor> getAroundInvokeInterceptors(MethodDescriptor businessMethod)
          Return the ordered list of interceptor info for AroundInvoke behavior of a particular business method.
 LifecycleCallbackDescriptor getAroundTimeoutDescriptorByClass(java.lang.String className)
           
 java.util.Set<LifecycleCallbackDescriptor> getAroundTimeoutDescriptors()
           
 java.util.List<EjbInterceptor> getAroundTimeoutInterceptors(MethodDescriptor businessMethod)
          Return the ordered list of interceptor info for AroundTimeout behavior of a particular business method.
 MethodDescriptor getBusinessMethodDescriptorFor(java.lang.reflect.Method m, java.lang.String methodIntf)
           
 java.util.List<EjbInterceptor> getCallbackInterceptors(LifecycleCallbackDescriptor.CallbackType type)
          Return the ordered list of interceptor info for a particular callback event type.
 java.util.Set getClientBusinessMethodDescriptors()
          Returns the set of local/remote/no-interface view business method descriptors I have.
 ContainerTransaction getContainerTransaction()
          returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return null
 ContainerTransaction getContainerTransactionFor(MethodDescriptor methodDescriptor)
          Fetches the assigned container transaction object for the given method object or null.
 java.util.Set<DataSourceDefinitionDescriptor> getDataSourceDefinitionDescriptors()
          Return a set of data-source-definition descriptors.
 EjbBundleDescriptor getEjbBundleDescriptor()
          Gets the containing ejb bundle descriptor..
 java.lang.String getEjbClassName()
          Returns the classname of the ejb.
 java.lang.String getEjbImplClassName()
          IASRI 4725194 Returns the Execution class ,which is same as the user-specified class in case of Message,Session and Bean Managed Persistence Entity Beans but is different for Container Mananged Persistence Entity Bean Therefore,the implementation in the base class is to return getEjbClassName() and the method is redefined in IASEjbCMPDescriptor.
 java.lang.String getEJBLocalObjectImplClassName()
          Returns the classname of the EJBLocalObject impl.
 java.lang.String getEJBObjectImplClassName()
          Returns the classname of the EJBObject impl.
 EjbReference getEjbReference(java.lang.String name)
          Return a reference to another ejb by the same name or throw an IllegalArgumentException.
 java.util.Set<EjbReference> getEjbReferenceDescriptors()
          Return the set of ejb references this ejb declares.
 MethodDescriptor getEjbTimeoutMethod()
           
 EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(java.lang.String name)
          Return the entity manager factory reference descriptor corresponding to the given name.
 java.util.Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
          Return a set of entity manager factory reference descriptors.
 EntityManagerReferenceDescriptor getEntityManagerReferenceByName(java.lang.String name)
          Return the entity manager factory reference descriptor corresponding to the given name.
 java.util.Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
          Return a set of entity manager reference descriptors.
 java.util.Set<EnvironmentProperty> getEnvironmentProperties()
          Return a copy of the structure holding the environment properties.
 EnvironmentProperty getEnvironmentPropertyByName(java.lang.String name)
          Returns the environment property object searching on the supplied key.
 java.util.Set getExcludedMethodDescriptors()
           
 java.util.Vector getFieldDescriptors()
           
 java.util.Vector getFields()
          Return a Vector of the Field objetcs of this ejb.
 java.util.List<InterceptorDescriptor> getFrameworkInterceptors()
           
 IASEjbExtraDescriptors getIASEjbExtraDescriptors()
          returns the extra iAS specific info (not in the RI DID) in the iAS DTD.
 java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className)
           
 InjectionInfo getInjectionInfoByClass(java.lang.Class clazz)
           
 java.util.List<EjbInterceptor> getInterceptorChain()
           
 java.util.Set<EjbInterceptor> getInterceptorClasses()
          Return an unordered set of interceptor descriptors for this bean.
 java.util.Set<java.lang.String> getInterceptorClassNames()
          Return an unordered set of the names of all interceptor classes for this bean.
 java.util.Set<EjbIORConfigurationDescriptor> getIORConfigurationDescriptors()
           
 JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(java.lang.String name)
          Return the JMS destination reference descriptor corresponding to the given name.
 java.util.Set<JmsDestinationReferenceDescriptor> getJmsDestinationReferenceDescriptors()
          Return the set of JMS destination references this ejb declares.
 java.lang.String getLocalHomeImplClassName()
          Returns the classname of the Local home impl.
 MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(java.lang.String name)
          Looks up an message destination reference with the given name.
 java.util.Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
          Return a set of message destination reference descriptors.
 java.util.Hashtable getMethodContainerTransactions()
          Return a copy of the mapping held internally of method descriptors to container transaction objects.
 java.util.Set getMethodDescriptors()
          Returns the full set of method descriptors I have (from all the methods on my home and remote interfaces).
 java.util.Map<MethodDescriptor,java.util.List<EjbInterceptor>> getMethodInterceptorsMap()
           
 java.util.Set getMethodPermissionsFor(MethodDescriptor methodDescriptor)
           
 java.util.HashMap getMethodPermissionsFromDD()
          Get a record of all the Method Permissions exactly as they were in the`DD
 java.util.Vector getMethods()
          Return the set of method objects on my home and remote interfaces.
 java.util.Vector getMethods(java.lang.ClassLoader classLoader)
          Return the ejb method objects, i.e.
 java.util.Set<java.lang.reflect.Method> getOptionalLocalBusinessMethods()
          Return the set of method objects representing no-interface view
 java.util.Map getPermissionedMethodsByPermission()
           
 java.util.Set getPermissionedRoles()
           
 java.util.Vector getPossibleTransactionAttributes()
          Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.
 LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className)
          Return the post-construct descriptor corresponding to the given name.
 java.util.Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
          Return a set of post-construct descriptors.
 LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className)
          Return the pre-destroy descriptor corresponding to the given name.
 java.util.Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
          Return a set of pre-destroy descriptors.
 java.lang.String getRemoteHomeImplClassName()
          Returns the classname of the remote home impl.
 ResourceReferenceDescriptor getResourceReferenceByName(java.lang.String name)
          Return the resource object corresponding to the supplied name or throw an illegal argument exception.
 java.util.Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
          Return the set of resource references this ejb declares.
 java.util.Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors(boolean resolved)
          Return the set of resource references this ejb declares that have been resolved.
 RoleReference getRoleReferenceByName(java.lang.String roleReferenceName)
          Returns a matching role reference by name or throw an IllegalArgumentException.
 java.util.Set<RoleReference> getRoleReferences()
          Return a copy of the role references set.
 RunAsIdentityDescriptor getRunAsIdentity()
           
 java.util.List<ScheduledTimerDescriptor> getScheduledTimerDescriptors()
           
 java.util.Set getSecurityBusinessMethodDescriptors()
          Returns the full set of security business method descriptors I have.
 java.lang.String getSecurityIdentityDescription()
          Get the description field of security-identity
 ServiceReferenceDescriptor getServiceReferenceByName(java.lang.String name)
          Looks up an service reference with the given name.
 java.util.Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
          Return a set of service reference descriptors.
 java.util.Map getStyledPermissionedMethodsByPermission()
           
 java.util.Collection getTransactionMethodDescriptors()
           
protected  java.util.Collection getTransactionMethods(java.lang.ClassLoader classLoader)
           
 java.lang.String getTransactionType()
          The transaction type of this ejb.
 java.util.Set getTxBusinessMethodDescriptors()
          Returns the full set of transactional business method descriptors I have.
 java.util.Set getUncheckedMethodDescriptors()
           
 long getUniqueId()
           
 java.lang.Boolean getUsesCallerIdentity()
          Get the usesCallerIdentity flag
 boolean hasAroundInvokeMethod()
           
 boolean hasAroundTimeoutMethod()
           
 boolean hasInterceptorClass(java.lang.String interceptorClassName)
           
 boolean hasPostConstructMethod()
           
 boolean hasPreDestroyMethod()
           
 boolean hasResolvedResourceReferences()
          Returns true if this ejb descriptor has resource references that are resolved.
 boolean hasScheduledTimerMethodFromDD(java.lang.reflect.Method timerMethod)
           
 boolean isDistributedTransactionScope()
          Gets the transaction scope of this ejb.
 boolean isTimedObject()
           
 boolean isUsesDefaultTransaction()
           
 void notifyNewModule(WebBundleDescriptor wbd)
          Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.
 void print(java.lang.StringBuffer toStringBuffer)
          Returns a formatted String of the attributes of this object.
 void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
          Removes the specified data-source-definition from the receiver.
 void removeEjbReferenceDescriptor(EjbReference ejbReference)
          Removes the specificed ejb reference from the receiver.
 void removeEjbReferencer(EjbReferenceDescriptor ref)
           
 void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
          Removes the given environment property from me.
 void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
          Removes the specified JMS destination reference from the receiver.
 void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
          Removes the specified message destination reference from the receiver.
 void removePermissionedMethod(MethodPermission mp, MethodDescriptor md)
          Remove a method permission from a method or a set of methods
 void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
          Removes the given resource reference from me.
 void removeRoleReference(RoleReference roleReference)
          Removes a role reference.
 void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
          Removes the specified service reference from the receiver.
 void setContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)
          Sets the container transaction for the given method descriptor.
 void setDistributedTransactionScope(boolean scope)
          Set the transaction scope of this ejb.
 void setEjbBundleDescriptor(EjbBundleDescriptor bundleDescriptor)
           
 void setEjbClassName(java.lang.String ejbClassName)
          Sets the classname of the ejb.
 void setEJBLocalObjectImplClassName(java.lang.String name)
          Sets the EJBLocalObject implementation classname of the ejb.
 void setEJBObjectImplClassName(java.lang.String name)
          Sets the EJBObject implementation classname of the ejb.
 void setEjbTimeoutMethod(MethodDescriptor method)
           
 void setLocalHomeImplClassName(java.lang.String name)
          Sets the Local home implementation classname of the ejb.
 void setMethodContainerTransactions(java.util.Hashtable methodContainerTransactions)
          Sets the container transactions for all the method descriptors of this ejb.
 void setRemoteHomeImplClassName(java.lang.String name)
          Sets the remote home implementation classname of the ejb.
 void setRunAsIdentity(RunAsIdentityDescriptor desc)
           
 void setSecurityIdentityDescription(java.lang.String s)
          Set the description field of security-identity
abstract  void setTransactionType(java.lang.String transactionType)
          Set the transaction type of this ejb.
 void setUniqueId(long id)
           
 void setUsesCallerIdentity(boolean flag)
          Set the usesCallerIdentity flag
 void setUsesDefaultTransaction()
          Have default method transaction if isBoundsChecking is on.
 void visit(DescriptorVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 void visit(EjbVisitor aVisitor)
          visit the descriptor and all sub descriptors with a DOL visitor implementation
 
Methods inherited from class com.sun.enterprise.deployment.EjbAbstractDescriptor
addLocalBusinessClassName, addNoInterfaceLocalBeanClass, addRemoteBusinessClassName, getHomeClassName, getJndiName, getLocalBusinessClassNames, getLocalClassName, getLocalHomeClassName, getMappedName, getNoInterfaceLocalBeanClasses, getRemoteBusinessClassNames, getRemoteClassName, getType, getWebServiceEndpointInterfaceName, hasWebServiceEndpointInterface, isLocalBean, isLocalBusinessInterfacesSupported, isLocalInterfacesSupported, isRemoteBusinessInterfacesSupported, isRemoteInterfacesSupported, setHomeClassName, setJndiName, setLocalBean, setLocalClassName, setLocalHomeClassName, setMappedName, setRemoteClassName, setType, setWebServiceEndpointInterfaceName
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, 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 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

BEAN_TRANSACTION_TYPE

public static final java.lang.String BEAN_TRANSACTION_TYPE
Indicates the bean will manage its own transactions.

See Also:
Constant Field Values

CONTAINER_TRANSACTION_TYPE

public static final java.lang.String CONTAINER_TRANSACTION_TYPE
Indicates the bean expects the server to manage its transactions.

See Also:
Constant Field Values

LOCAL_TRANSACTION_SCOPE

public static final java.lang.String LOCAL_TRANSACTION_SCOPE
See Also:
Constant Field Values

DISTRIBUTED_TRANSACTION_SCOPE

public static final java.lang.String DISTRIBUTED_TRANSACTION_SCOPE
See Also:
Constant Field Values

transactionType

protected java.lang.String transactionType

usesDefaultTransaction

protected boolean usesDefaultTransaction

usesCallerIdentity

protected java.lang.Boolean usesCallerIdentity

securityIdentityDescription

protected java.lang.String securityIdentityDescription

isDistributedTxScope

protected boolean isDistributedTxScope

runAsIdentity

protected RunAsIdentityDescriptor runAsIdentity
Constructor Detail

EjbDescriptor

protected EjbDescriptor()
Default constructor.


EjbDescriptor

public EjbDescriptor(EjbDescriptor other)
Method Detail

getIASEjbExtraDescriptors

public IASEjbExtraDescriptors getIASEjbExtraDescriptors()
returns the extra iAS specific info (not in the RI DID) in the iAS DTD. no setter. You have to modify some fields of the returned object to change it. TODO: check if we need to clone it in the Copy Constructor...


addEjbDescriptor

public void addEjbDescriptor(EjbDescriptor other)

setEjbClassName

public void setEjbClassName(java.lang.String ejbClassName)
Sets the classname of the ejb.


getEjbClassName

public java.lang.String getEjbClassName()
Returns the classname of the ejb.


getEjbImplClassName

public java.lang.String getEjbImplClassName()
IASRI 4725194 Returns the Execution class ,which is same as the user-specified class in case of Message,Session and Bean Managed Persistence Entity Beans but is different for Container Mananged Persistence Entity Bean Therefore,the implementation in the base class is to return getEjbClassName() and the method is redefined in IASEjbCMPDescriptor.


setRemoteHomeImplClassName

public void setRemoteHomeImplClassName(java.lang.String name)
Sets the remote home implementation classname of the ejb.


getRemoteHomeImplClassName

public java.lang.String getRemoteHomeImplClassName()
Returns the classname of the remote home impl.


setLocalHomeImplClassName

public void setLocalHomeImplClassName(java.lang.String name)
Sets the Local home implementation classname of the ejb.


getLocalHomeImplClassName

public java.lang.String getLocalHomeImplClassName()
Returns the classname of the Local home impl.


setEJBLocalObjectImplClassName

public void setEJBLocalObjectImplClassName(java.lang.String name)
Sets the EJBLocalObject implementation classname of the ejb.


getEJBLocalObjectImplClassName

public java.lang.String getEJBLocalObjectImplClassName()
Returns the classname of the EJBLocalObject impl.


setEJBObjectImplClassName

public void setEJBObjectImplClassName(java.lang.String name)
Sets the EJBObject implementation classname of the ejb.


getEJBObjectImplClassName

public java.lang.String getEJBObjectImplClassName()
Returns the classname of the EJBObject impl.


getTransactionType

public java.lang.String getTransactionType()
The transaction type of this ejb.


setTransactionType

public abstract void setTransactionType(java.lang.String transactionType)
Set the transaction type of this ejb.


getPossibleTransactionAttributes

public java.util.Vector getPossibleTransactionAttributes()
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction


isTimedObject

public boolean isTimedObject()

getEjbTimeoutMethod

public MethodDescriptor getEjbTimeoutMethod()

setEjbTimeoutMethod

public void setEjbTimeoutMethod(MethodDescriptor method)

addScheduledTimerDescriptor

public void addScheduledTimerDescriptor(ScheduledTimerDescriptor scheduleDescriptor)

addScheduledTimerDescriptorFromDD

public void addScheduledTimerDescriptorFromDD(ScheduledTimerDescriptor scheduleDescriptor)
Special method for overrides because more than one schedule can be specified on a single method


hasScheduledTimerMethodFromDD

public boolean hasScheduledTimerMethodFromDD(java.lang.reflect.Method timerMethod)

getScheduledTimerDescriptors

public java.util.List<ScheduledTimerDescriptor> getScheduledTimerDescriptors()

getAroundInvokeDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getAroundInvokeDescriptors()

addAroundInvokeDescriptor

public void addAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)

getAroundInvokeDescriptorByClass

public LifecycleCallbackDescriptor getAroundInvokeDescriptorByClass(java.lang.String className)

hasAroundInvokeMethod

public boolean hasAroundInvokeMethod()

getAroundTimeoutDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getAroundTimeoutDescriptors()

addAroundTimeoutDescriptor

public void addAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)

getAroundTimeoutDescriptorByClass

public LifecycleCallbackDescriptor getAroundTimeoutDescriptorByClass(java.lang.String className)

hasAroundTimeoutMethod

public boolean hasAroundTimeoutMethod()

addFrameworkInterceptor

public void addFrameworkInterceptor(InterceptorDescriptor interceptor)

getFrameworkInterceptors

public java.util.List<InterceptorDescriptor> getFrameworkInterceptors()

applyDefaultClassToLifecycleMethods

public void applyDefaultClassToLifecycleMethods()
Since ejb-class is optional, in some cases the lifecycle-class for AroundInvoke, PostConstruct, etc. methods on the bean-class is not known at processing time and must be applied lazily. As such, this method should only be called if the ejb-class has been set on this EjbDescriptor.


applyInterceptors

public void applyInterceptors(InterceptorBindingTranslator bindingTranslator)
Derive all interceptors that are applicable to this bean.


hasInterceptorClass

public boolean hasInterceptorClass(java.lang.String interceptorClassName)

addInterceptorClass

public void addInterceptorClass(EjbInterceptor interceptor)

appendToInterceptorChain

public void appendToInterceptorChain(java.util.List<EjbInterceptor> chain)

getInterceptorClasses

public java.util.Set<EjbInterceptor> getInterceptorClasses()
Return an unordered set of interceptor descriptors for this bean. This list does not include interceptor info for the bean class itself, even if the bean class declares AroundInvoke methods and/or callbacks.


getInterceptorClassNames

public java.util.Set<java.lang.String> getInterceptorClassNames()
Return an unordered set of the names of all interceptor classes for this bean. This list does not include the name of the bean class itself, even if the bean class declares AroundInvoke methods and/or callbacks.


getMethodInterceptorsMap

public java.util.Map<MethodDescriptor,java.util.List<EjbInterceptor>> getMethodInterceptorsMap()

getInterceptorChain

public java.util.List<EjbInterceptor> getInterceptorChain()

getAroundInvokeInterceptors

public java.util.List<EjbInterceptor> getAroundInvokeInterceptors(MethodDescriptor businessMethod)
Return the ordered list of interceptor info for AroundInvoke behavior of a particular business method. This list *does* include the info on any bean class interceptor. If present, this would always be the last element in the list because of the precedence defined by the spec.


getAroundTimeoutInterceptors

public java.util.List<EjbInterceptor> getAroundTimeoutInterceptors(MethodDescriptor businessMethod)
Return the ordered list of interceptor info for AroundTimeout behavior of a particular business method. This list *does* include the info on any bean class interceptor. If present, this would always be the last element in the list because of the precedence defined by the spec.


addMethodLevelChain

public void addMethodLevelChain(java.util.List<EjbInterceptor> chain,
                                java.lang.reflect.Method m,
                                boolean aroundInvoke)

getCallbackInterceptors

public java.util.List<EjbInterceptor> getCallbackInterceptors(LifecycleCallbackDescriptor.CallbackType type)
Return the ordered list of interceptor info for a particular callback event type. This list *does* include the info on any bean class callback. If present, this would always be the last element in the list because of the precedence defined by the spec.


isDistributedTransactionScope

public boolean isDistributedTransactionScope()
Gets the transaction scope of this ejb.

Returns:
true if bean has distributed tx scope (default).

setDistributedTransactionScope

public void setDistributedTransactionScope(boolean scope)
Set the transaction scope of this ejb.


setUsesCallerIdentity

public void setUsesCallerIdentity(boolean flag)
Set the usesCallerIdentity flag


getUsesCallerIdentity

public java.lang.Boolean getUsesCallerIdentity()
Get the usesCallerIdentity flag

Returns:
Boolean.TRUE if this bean uses caller identity null if this is called before validator visit

getSecurityIdentityDescription

public java.lang.String getSecurityIdentityDescription()
Get the description field of security-identity


setSecurityIdentityDescription

public void setSecurityIdentityDescription(java.lang.String s)
Set the description field of security-identity


setRunAsIdentity

public void setRunAsIdentity(RunAsIdentityDescriptor desc)

getRunAsIdentity

public RunAsIdentityDescriptor getRunAsIdentity()

setUsesDefaultTransaction

public void setUsesDefaultTransaction()
Have default method transaction if isBoundsChecking is on.


isUsesDefaultTransaction

public boolean isUsesDefaultTransaction()
Returns:
a state to indicate whether default method transaction is used if isBoundsChecking is on.

getMethodContainerTransactions

public java.util.Hashtable getMethodContainerTransactions()
Return a copy of the mapping held internally of method descriptors to container transaction objects.


setContainerTransactionFor

public void setContainerTransactionFor(MethodDescriptor methodDescriptor,
                                       ContainerTransaction containerTransaction)
Sets the container transaction for the given method descriptor. Throws an Illegal argument if this ejb has transaction type BEAN_TRANSACTION_TYPE.


setMethodContainerTransactions

public void setMethodContainerTransactions(java.util.Hashtable methodContainerTransactions)
Sets the container transactions for all the method descriptors of this ejb. The Hashtable is keyed by method descriptor and the values are the corresponding container transaction objects.. Throws an Illegal argument if this ejb has transaction type BEAN_TRANSACTION_TYPE.


getContainerTransactionFor

public ContainerTransaction getContainerTransactionFor(MethodDescriptor methodDescriptor)
Fetches the assigned container transaction object for the given method object or null.


getContainerTransaction

public ContainerTransaction getContainerTransaction()
returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return null


getIORConfigurationDescriptors

public java.util.Set<EjbIORConfigurationDescriptor> getIORConfigurationDescriptors()

addIORConfigurationDescriptor

public void addIORConfigurationDescriptor(EjbIORConfigurationDescriptor val)

getPermissionedRoles

public java.util.Set getPermissionedRoles()

getPermissionedMethodsByPermission

public java.util.Map getPermissionedMethodsByPermission()
Returns:
the Map of MethodPermission (keys) that have been assigned to MethodDescriptors (elements)

addPermissionedMethod

public void addPermissionedMethod(MethodPermission mp,
                                  MethodDescriptor md)
Add a new method permission to a method or a set of methods

Parameters:
mp - is the new method permission to assign
md - describe the method or set of methods this permission apply to

getMethodPermissionsFromDD

public java.util.HashMap getMethodPermissionsFromDD()
Get a record of all the Method Permissions exactly as they were in the`DD


removePermissionedMethod

public void removePermissionedMethod(MethodPermission mp,
                                     MethodDescriptor md)
Remove a method permission from a method or a set of methods

Parameters:
mp - is the method permission to remove
md - describe the method or set of methods this permission apply to

getStyledPermissionedMethodsByPermission

public java.util.Map getStyledPermissionedMethodsByPermission()
Returns:
a map of permission to style 1 or 2 method descriptors

getUncheckedMethodDescriptors

public java.util.Set getUncheckedMethodDescriptors()
Returns:
a Set of method descriptors for all the methods associated with an unchecked method permission

getExcludedMethodDescriptors

public java.util.Set getExcludedMethodDescriptors()
Returns:
a Set of method descriptors for all the methoda assoicated with an excluded method permission

getMethodPermissionsFor

public java.util.Set getMethodPermissionsFor(MethodDescriptor methodDescriptor)
Returns:
the set of method permission assigned to a ejb method descriptor.

getEjbReferenceDescriptors

public java.util.Set<EjbReference> getEjbReferenceDescriptors()
Return the set of ejb references this ejb declares.

Specified by:
getEjbReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getEjbReferenceDescriptors in interface EjbReferenceContainer
Returns:
java.util.Set of EjbReferenceDescriptor objects

addEjbReferenceDescriptor

public void addEjbReferenceDescriptor(EjbReference ejbReference)
Adds a reference to another ejb to me.

Specified by:
addEjbReferenceDescriptor in interface EjbReferenceContainer
Specified by:
addEjbReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
ejbReference - the EjbReferenceDescriptor to add.

removeEjbReferenceDescriptor

public void removeEjbReferenceDescriptor(EjbReference ejbReference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specificed ejb reference from the receiver.

Specified by:
removeEjbReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
ejbReference - the EjbReferenceDescriptor to remove.

getPostConstructDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of post-construct descriptors.

Specified by:
getPostConstructDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of LifecycleCallbackDescriptor post-construct objects

addPostConstructDescriptor

public void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified post-construct descriptor to the receiver.

Specified by:
addPostConstructDescriptor in interface WritableJndiNameEnvironment

getPostConstructDescriptorByClass

public LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className)
Description copied from interface: JndiNameEnvironment
Return the post-construct descriptor corresponding to the given name.

Specified by:
getPostConstructDescriptorByClass in interface JndiNameEnvironment
Returns:
LifecycleCallbackDescriptor post-construct object

getPreDestroyDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of pre-destroy descriptors.

Specified by:
getPreDestroyDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of LifecycleCallbackDescriptor pre-destroy objects

addPreDestroyDescriptor

public void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified pre-destroy descriptor to the receiver.

Specified by:
addPreDestroyDescriptor in interface WritableJndiNameEnvironment

getPreDestroyDescriptorByClass

public LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className)
Description copied from interface: JndiNameEnvironment
Return the pre-destroy descriptor corresponding to the given name.

Specified by:
getPreDestroyDescriptorByClass in interface JndiNameEnvironment
Returns:
LifecycleCallbackDescriptor pre-destroy object

getDataSourceDefinitionDescriptors

public java.util.Set<DataSourceDefinitionDescriptor> getDataSourceDefinitionDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of data-source-definition descriptors.

Specified by:
getDataSourceDefinitionDescriptors in interface JndiNameEnvironment
Returns:
java.util.Set of data-source-definition objects

addDataSourceDefinitionDescriptor

public void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified data-source-definition to the receiver.

Specified by:
addDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironment
Parameters:
reference - DataSourceDefinitionDescriptor to add.

removeDataSourceDefinitionDescriptor

public void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified data-source-definition from the receiver.

Specified by:
removeDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironment
Parameters:
reference - DataSourceDefinitionDescriptor to remove.

getServiceReferenceDescriptors

public java.util.Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of service reference descriptors.

Specified by:
getServiceReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getServiceReferenceDescriptors in interface ServiceReferenceContainer
Returns:
java.util.Set of ServiceReferenceDescriptor objects

addServiceReferenceDescriptor

public void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified service reference to the receiver.

Specified by:
addServiceReferenceDescriptor in interface ServiceReferenceContainer
Specified by:
addServiceReferenceDescriptor in interface WritableJndiNameEnvironment

removeServiceReferenceDescriptor

public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified service reference from the receiver.

Specified by:
removeServiceReferenceDescriptor in interface ServiceReferenceContainer
Specified by:
removeServiceReferenceDescriptor in interface WritableJndiNameEnvironment

getServiceReferenceByName

public ServiceReferenceDescriptor getServiceReferenceByName(java.lang.String name)
Looks up an service reference with the given name. Throws an IllegalArgumentException if it is not found.

Specified by:
getServiceReferenceByName in interface JndiNameEnvironment
Specified by:
getServiceReferenceByName in interface ServiceReferenceContainer
Returns:
ServiceReferenceDescriptor object

getMessageDestinationReferenceDescriptors

public java.util.Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of message destination reference descriptors.

Specified by:
getMessageDestinationReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getMessageDestinationReferenceDescriptors in interface MessageDestinationReferenceContainer
Returns:
java.util.Set of MessageDestinationReferenceDescriptor objects

addMessageDestinationReferenceDescriptor

public void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified message destination reference to the receiver.

Specified by:
addMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainer
Specified by:
addMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

removeMessageDestinationReferenceDescriptor

public void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified message destination reference from the receiver.

Specified by:
removeMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainer
Specified by:
removeMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

getMessageDestinationReferenceByName

public MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(java.lang.String name)
Looks up an message destination reference with the given name. Throws an IllegalArgumentException if it is not found.

Specified by:
getMessageDestinationReferenceByName in interface JndiNameEnvironment
Specified by:
getMessageDestinationReferenceByName in interface MessageDestinationReferenceContainer
Returns:
MessageDestinationReferenceDescriptor object

getJmsDestinationReferenceDescriptors

public java.util.Set<JmsDestinationReferenceDescriptor> getJmsDestinationReferenceDescriptors()
Return the set of JMS destination references this ejb declares.

Specified by:
getJmsDestinationReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getJmsDestinationReferenceDescriptors in interface ResourceEnvReferenceContainer
Returns:
java.util.Set of JmsDestinationReferenceDescriptor objects

addJmsDestinationReferenceDescriptor

public void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Description copied from interface: WritableJndiNameEnvironment
Adds the specified JMS destination reference to the receiver.

Specified by:
addJmsDestinationReferenceDescriptor in interface ResourceEnvReferenceContainer
Specified by:
addJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

removeJmsDestinationReferenceDescriptor

public void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Description copied from interface: WritableJndiNameEnvironment
Removes the specified JMS destination reference from the receiver.

Specified by:
removeJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironment

getJmsDestinationReferenceByName

public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(java.lang.String name)
Description copied from interface: JndiNameEnvironment
Return the JMS destination reference descriptor corresponding to the given name.

Specified by:
getJmsDestinationReferenceByName in interface JndiNameEnvironment
Specified by:
getJmsDestinationReferenceByName in interface ResourceEnvReferenceContainer
Returns:
JmsDestinationReferenceDescriptor object

getResourceReferenceDescriptors

public java.util.Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
Return the set of resource references this ejb declares.

Specified by:
getResourceReferenceDescriptors in interface JndiNameEnvironment
Specified by:
getResourceReferenceDescriptors in interface ResourceReferenceContainer
Returns:
java.util.Set of ResourceReferenceDescriptor objects

addResourceReferenceDescriptor

public void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a resource reference to me.

Specified by:
addResourceReferenceDescriptor in interface ResourceReferenceContainer
Specified by:
addResourceReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
resourceReference - the ResourceReferenceDescriptor to add.

removeResourceReferenceDescriptor

public void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from me.

Specified by:
removeResourceReferenceDescriptor in interface WritableJndiNameEnvironment
Parameters:
resourceReference - the ResourceReferenceDescriptor to remove.

getEnvironmentPropertyByName

public EnvironmentProperty getEnvironmentPropertyByName(java.lang.String name)
Returns the environment property object searching on the supplied key. throws an illegal argument exception if no such environment property exists.

Specified by:
getEnvironmentPropertyByName in interface JndiNameEnvironment
Returns:
EnvironmentProperty descriptor

getEnvironmentProperties

public java.util.Set<EnvironmentProperty> getEnvironmentProperties()
Return a copy of the structure holding the environment properties.

Specified by:
getEnvironmentProperties in interface JndiNameEnvironment
Returns:
java.util.Set of EnvironmentProperty objects

addEnvironmentProperty

public void addEnvironmentProperty(EnvironmentProperty environmentProperty)
Add the supplied environment property to the ejb descriptor's list.

Specified by:
addEnvironmentProperty in interface WritableJndiNameEnvironment
Parameters:
environmentProperty - the EnvironmentProperty to add.

removeEnvironmentProperty

public void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the given environment property from me.

Specified by:
removeEnvironmentProperty in interface WritableJndiNameEnvironment
Parameters:
environmentProperty - the EnvironmentProperty to remove.

getEntityManagerFactoryReferenceDescriptors

public java.util.Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of entity manager factory reference descriptors.

Specified by:
getEntityManagerFactoryReferenceDescriptors in interface JndiNameEnvironment

getEntityManagerFactoryReferenceByName

public EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name.

Specified by:
getEntityManagerFactoryReferenceByName in interface JndiNameEnvironment

addEntityManagerFactoryReferenceDescriptor

public void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
Specified by:
addEntityManagerFactoryReferenceDescriptor in interface WritableJndiNameEnvironment

getEntityManagerReferenceDescriptors

public java.util.Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
Description copied from interface: JndiNameEnvironment
Return a set of entity manager reference descriptors.

Specified by:
getEntityManagerReferenceDescriptors in interface JndiNameEnvironment

getEntityManagerReferenceByName

public EntityManagerReferenceDescriptor getEntityManagerReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name.

Specified by:
getEntityManagerReferenceByName in interface JndiNameEnvironment

addEntityManagerReferenceDescriptor

public void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
Specified by:
addEntityManagerReferenceDescriptor in interface WritableJndiNameEnvironment

getInjectableResourcesByClass

public java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className)
Specified by:
getInjectableResourcesByClass in interface JndiNameEnvironment

getInjectionInfoByClass

public InjectionInfo getInjectionInfoByClass(java.lang.Class clazz)
Specified by:
getInjectionInfoByClass in interface JndiNameEnvironment

hasPostConstructMethod

public boolean hasPostConstructMethod()

hasPreDestroyMethod

public boolean hasPreDestroyMethod()

getResourceReferenceDescriptors

public java.util.Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors(boolean resolved)
Return the set of resource references this ejb declares that have been resolved.


getResourceReferenceByName

public ResourceReferenceDescriptor getResourceReferenceByName(java.lang.String name)
Return the resource object corresponding to the supplied name or throw an illegal argument exception.

Specified by:
getResourceReferenceByName in interface ResourceReferenceContainer

hasResolvedResourceReferences

public boolean hasResolvedResourceReferences()
Returns true if this ejb descriptor has resource references that are resolved.


getEjbReference

public EjbReference getEjbReference(java.lang.String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException.

Specified by:
getEjbReference in interface EjbReferenceContainer

getRoleReferences

public java.util.Set<RoleReference> getRoleReferences()
Return a copy of the role references set.


addRoleReference

public void addRoleReference(RoleReference roleReference)
Adds a role reference.


removeRoleReference

public void removeRoleReference(RoleReference roleReference)
Removes a role reference.


getRoleReferenceByName

public RoleReference getRoleReferenceByName(java.lang.String roleReferenceName)
Returns a matching role reference by name or throw an IllegalArgumentException.


getEjbBundleDescriptor

public EjbBundleDescriptor getEjbBundleDescriptor()
Gets the containing ejb bundle descriptor..


setEjbBundleDescriptor

public void setEjbBundleDescriptor(EjbBundleDescriptor bundleDescriptor)

notifyNewModule

public void notifyNewModule(WebBundleDescriptor wbd)
Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.


getApplication

public Application getApplication()
Gets the application to which this ejb descriptor belongs.


getMethodDescriptors

public java.util.Set getMethodDescriptors()
Returns the full set of method descriptors I have (from all the methods on my home and remote interfaces).


getTxBusinessMethodDescriptors

public java.util.Set getTxBusinessMethodDescriptors()
Returns the full set of transactional business method descriptors I have.


getSecurityBusinessMethodDescriptors

public java.util.Set getSecurityBusinessMethodDescriptors()
Returns the full set of security business method descriptors I have.


getClientBusinessMethodDescriptors

public java.util.Set getClientBusinessMethodDescriptors()
Returns the set of local/remote/no-interface view business method descriptors I have.


addAllInterfaceMethodsIn

protected void addAllInterfaceMethodsIn(java.util.Collection methodDescriptors,
                                        java.lang.Class c,
                                        java.lang.String methodIntf)

getBusinessMethodDescriptorFor

public MethodDescriptor getBusinessMethodDescriptorFor(java.lang.reflect.Method m,
                                                       java.lang.String methodIntf)
Returns:
the MethodDescriptor for the given Method object

getTransactionMethodDescriptors

public java.util.Collection getTransactionMethodDescriptors()
Returns:
the collection of MethodDescriptors to which ContainerTransactions may be assigned.

getTransactionMethods

protected java.util.Collection getTransactionMethods(java.lang.ClassLoader classLoader)
Returns:
a collection of MethodDescriptor for methods which may have a associated transaction attribute

getOptionalLocalBusinessMethods

public java.util.Set<java.lang.reflect.Method> getOptionalLocalBusinessMethods()
Return the set of method objects representing no-interface view


getMethods

public java.util.Vector getMethods()
Return the set of method objects on my home and remote interfaces.


getMethods

public java.util.Vector getMethods(java.lang.ClassLoader classLoader)
Return the ejb method objects, i.e. the methods on the home and remote interfaces.


getFields

public java.util.Vector getFields()
Return a Vector of the Field objetcs of this ejb.


getFieldDescriptors

public java.util.Vector getFieldDescriptors()

removeEjbReferencer

public void removeEjbReferencer(EjbReferenceDescriptor ref)

getAllEjbReferencers

public java.util.Set getAllEjbReferencers()

setUniqueId

public void setUniqueId(long id)

getUniqueId

public long getUniqueId()

print

public void print(java.lang.StringBuffer toStringBuffer)
Returns a formatted String of the attributes of this object.

Overrides:
print in class EjbAbstractDescriptor

visit

public void visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Overrides:
visit in class Descriptor
Parameters:
aVisitor - a visitor to traverse the descriptors

visit

public void visit(EjbVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation

Parameters:
aVisitor - a visitor to traverse the descriptors

allMechanismsRequireSSL

public boolean allMechanismsRequireSSL()
This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.



Copyright © 2012 GlassFish Community. All Rights Reserved.