Class EjbDescriptor
- 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
-
- All Implemented Interfaces:
EjbDescriptor,JndiNameEnvironment,NamedDescriptor,EjbReferenceContainer,MessageDestinationReferenceContainer,ResourceEnvReferenceContainer,ResourceReferenceContainer,ServiceReferenceContainer,WritableJndiNameEnvironment,Serializable
- Direct Known Subclasses:
DummyEjbDescriptor,EjbEntityDescriptor,EjbMessageBeanDescriptor,EjbSessionDescriptor
public abstract class EjbDescriptor extends CommonResourceDescriptor implements EjbDescriptor
This abstract class encapsulates the meta-information describing Entity, Session and MessageDriven EJBs.- Author:
- Danny Coward, Sanjeev Krishnan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISTRIBUTED_TRANSACTION_SCOPEprotected booleanisDistributedTxScopestatic StringLOCAL_TRANSACTION_SCOPEprotected RunAsIdentityDescriptorrunAsIdentityprotected StringsecurityIdentityDescriptionprotected StringtransactionTypeprotected BooleanusesCallerIdentityprotected booleanusesDefaultTransaction-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEjbDescriptor()Default constructor.EjbDescriptor(EjbDescriptor other)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddAllInterfaceMethodsIn(Collection<MethodDescriptor> methodDescriptors, Class<?> clazz, String methodInterface)voidaddAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)voidaddAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)voidaddEjbDescriptor(EjbDescriptor other)voidaddEjbReferenceDescriptor(EjbReference ejbReference)Adds a reference to another ejb to me.voidaddEjbReferencer(EjbReferenceDescriptor ref)voidaddEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)voidaddEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)voidaddEnvironmentProperty(EnvironmentProperty environmentProperty)Add the supplied environment property to the ejb descriptor's list.voidaddFrameworkInterceptor(InterceptorDescriptor interceptor)voidaddInterceptorClass(EjbInterceptor interceptor)voidaddIORConfigurationDescriptor(EjbIORConfigurationDescriptor val)voidaddLocalBusinessClassName(String className)voidaddMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)Adds the specified message destination reference to the receiver.voidaddMethodLevelChain(List<EjbInterceptor> chain, Method m, boolean aroundInvoke)voidaddNoInterfaceLocalBeanClass(String className)Add a classname for a no-interface view of the local ejbvoidaddPermissionedMethod(MethodPermission mp, MethodDescriptor md)Add a new method permission to a method or a set of methodsvoidaddPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)Adds the specified post-construct descriptor to the receiver.voidaddPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)Adds the specified pre-destroy descriptor to the receiver.voidaddRemoteBusinessClassName(String className)voidaddResourceDescriptor(ResourceDescriptor descriptor)Adds the specified descriptor to the receiver.voidaddResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)Adds the specified resource environment reference to the receiver.voidaddResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)Adds a resource reference to me.voidaddRoleReference(RoleReference roleReference)Adds a role reference.voidaddScheduledTimerDescriptor(ScheduledTimerDescriptor scheduleDescriptor)voidaddScheduledTimerDescriptorFromDD(ScheduledTimerDescriptor scheduleDescriptor)Special method for overrides because more than one schedule can be specified on a single methodvoidaddServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)Adds the specified service reference to the receiver.booleanallMechanismsRequireSSL()This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.voidappendToInterceptorChain(List<EjbInterceptor> chain)voidapplyDefaultClassToLifecycleMethods()Since ejb-class is optional, in some cases the lifecycle-class for AroundInvoke, PostConstruct, etc.voidapplyInterceptors(InterceptorBindingTranslator bindingTranslator)Derive all interceptors that are applicable to this bean.Set<EjbReferenceDescriptor>getAllEjbReferencers()Set<ResourceDescriptor>getAllResourcesDescriptors()Return a set of descriptors.Set<ResourceDescriptor>getAllResourcesDescriptors(Class givenClazz)Return a set of descriptors based on the class value.ApplicationgetApplication()Gets the application to which this ejb descriptor belongs.LifecycleCallbackDescriptorgetAroundInvokeDescriptorByClass(String className)Set<LifecycleCallbackDescriptor>getAroundInvokeDescriptors()List<EjbInterceptor>getAroundInvokeInterceptors(MethodDescriptor businessMethod)Return the ordered list of interceptor info for AroundInvoke behavior of a particular business method.LifecycleCallbackDescriptorgetAroundTimeoutDescriptorByClass(String className)Set<LifecycleCallbackDescriptor>getAroundTimeoutDescriptors()List<EjbInterceptor>getAroundTimeoutInterceptors(MethodDescriptor businessMethod)Return the ordered list of interceptor info for AroundTimeout behavior of a particular business method.MethodDescriptorgetBusinessMethodDescriptorFor(Method m, String methodIntf)List<EjbInterceptor>getCallbackInterceptors(LifecycleCallbackDescriptor.CallbackType type)Return the ordered list of interceptor info for a particular callback event type.Set<MethodDescriptor>getClientBusinessMethodDescriptors()Returns the set of local/remote/no-interface view business method descriptors.abstract StringgetContainerFactoryQualifier()ContainerTransactiongetContainerTransaction()returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return nullContainerTransactiongetContainerTransactionFor(MethodDescriptor methodDescriptor)Fetches the assigned container transaction object for the given method object or null.EjbBundleDescriptorImplgetEjbBundleDescriptor()Gets the containing ejb bundle descriptor..StringgetEjbClassName()Returns the classname of the ejb.StringgetEjbImplClassName()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 returngetEjbClassName()and the method is redefined in IASEjbCMPDescriptor.StringgetEJBLocalObjectImplClassName()Returns the classname of the EJBLocalObject impl.StringgetEJBObjectImplClassName()Returns the classname of the EJBObject impl.EjbReferencegetEjbReference(String name)Return a reference to another ejb by the same name or throw an IllegalArgumentException.Set<EjbReference>getEjbReferenceDescriptors()Return the set of ejb references this ejb declares.MethodDescriptorgetEjbTimeoutMethod()abstract StringgetEjbTypeForDisplay()EntityManagerFactoryReferenceDescriptorgetEntityManagerFactoryReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<EntityManagerFactoryReferenceDescriptor>getEntityManagerFactoryReferenceDescriptors()Return a set of entity manager factory reference descriptors.EntityManagerReferenceDescriptorgetEntityManagerReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<EntityManagerReferenceDescriptor>getEntityManagerReferenceDescriptors()Return a set of entity manager reference descriptors.Set<EnvironmentProperty>getEnvironmentProperties()Return a copy of the structure holding the environment properties.EnvironmentPropertygetEnvironmentPropertyByName(String name)Returns the environment property object searching on the supplied key.Set<MethodDescriptor>getExcludedMethodDescriptors()Vector<FieldDescriptor>getFieldDescriptors()Vector<Field>getFields()Return a Vector of the Field objects of this ejb.List<InterceptorDescriptor>getFrameworkInterceptors()StringgetHomeClassName()Returns the classname of the Home interface of this ejb.IASEjbExtraDescriptorsgetIASEjbExtraDescriptors()returns the extra iAS specific info (not in the RI DID) in the iAS DTD.List<InjectionCapable>getInjectableResourcesByClass(String className)InjectionInfogetInjectionInfoByClass(Class clazz)List<EjbInterceptor>getInterceptorChain()Set<EjbInterceptor>getInterceptorClasses()Return an unordered set of interceptor descriptors for this bean.Set<String>getInterceptorClassNames()Return an unordered set of the names of all interceptor classes for this bean.Set<EjbIORConfigurationDescriptor>getIORConfigurationDescriptors()StringgetJndiName()Returns the JNDI name property of the receiver.Set<LifecycleCallbackDescriptor>getLifecycleCallbackDescriptors()Set<String>getLocalBusinessClassNames()Returns the set of local business interface names for this ejb.StringgetLocalClassName()StringgetLocalHomeClassName()StringgetLocalHomeImplClassName()Returns the classname of the Local home impl.StringgetMappedName()MessageDestinationReferenceDescriptorgetMessageDestinationReferenceByName(String name)Looks up an message destination reference with the given name.Set<MessageDestinationReferenceDescriptor>getMessageDestinationReferenceDescriptors()Return a set of message destination reference descriptors.Hashtable<MethodDescriptor,ContainerTransaction>getMethodContainerTransactions()Return a copy of the mapping held internally of method descriptors to container transaction objects.Set<MethodDescriptor>getMethodDescriptors()Returns the full set of method descriptors (from all the methods on the home and remote interfaces).Map<MethodDescriptor,List<EjbInterceptor>>getMethodInterceptorsMap()Set<MethodPermission>getMethodPermissionsFor(MethodDescriptor methodDescriptor)Map<MethodPermission,List<MethodDescriptor>>getMethodPermissionsFromDD()Get a record of all the Method Permissions exactly as they were in the`DDVector<Method>getMethods()Return the set of method objects on my home and remote interfaces.Vector<Method>getMethods(ClassLoader classLoader)Return the ejb method objects, i.e.Set<String>getNoInterfaceLocalBeanClasses()Set<Method>getOptionalLocalBusinessMethods()Return the set of method objects representing no-interface viewMap<MethodPermission,Set<MethodDescriptor>>getPermissionedMethodsByPermission()Set<Role>getPermissionedRoles()Vector<ContainerTransaction>getPossibleTransactionAttributes()Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.LifecycleCallbackDescriptorgetPostConstructDescriptorByClass(String className)Return the post-construct descriptor corresponding to the given name.Set<LifecycleCallbackDescriptor>getPostConstructDescriptors()Return a set of post-construct descriptors.LifecycleCallbackDescriptorgetPreDestroyDescriptorByClass(String className)Return the pre-destroy descriptor corresponding to the given name.Set<LifecycleCallbackDescriptor>getPreDestroyDescriptors()Return a set of pre-destroy descriptors.Set<String>getRemoteBusinessClassNames()Returns the set of remote business interface names for this ejb.StringgetRemoteClassName()Returns the classname of the Remote interface of this ejb.StringgetRemoteHomeImplClassName()Returns the classname of the remote home impl.Set<ResourceDescriptor>getResourceDescriptors(JavaEEResourceType type)Return a set of descriptors based on the type.ResourceEnvReferenceDescriptorgetResourceEnvReferenceByName(String name)Return the resource environment reference descriptor corresponding to the given name.Set<ResourceEnvReferenceDescriptor>getResourceEnvReferenceDescriptors()Return the set of resource environment references this ejb declares.ResourceReferenceDescriptorgetResourceReferenceByName(String name)Return the resource object corresponding to the supplied name or throw an illegal argument exception.Set<ResourceReferenceDescriptor>getResourceReferenceDescriptors()Return the set of resource references this ejb declares.Set<ResourceReferenceDescriptor>getResourceReferenceDescriptors(boolean resolved)Return the set of resource references this ejb declares that have been resolved.RoleReferencegetRoleReferenceByName(String roleReferenceName)Returns a matching role reference by name or throw an IllegalArgumentException.Set<RoleReference>getRoleReferences()Return a copy of the role references set.RunAsIdentityDescriptorgetRunAsIdentity()List<ScheduledTimerDescriptor>getScheduledTimerDescriptors()Set<MethodDescriptor>getSecurityBusinessMethodDescriptors()Returns the full set of security business method descriptors.StringgetSecurityIdentityDescription()Get the description field of security-identityServiceReferenceDescriptorgetServiceReferenceByName(String name)Looks up an service reference with the given name.Set<ServiceReferenceDescriptor>getServiceReferenceDescriptors()Return a set of service reference descriptors.Map<MethodPermission,Set<MethodDescriptor>>getStyledPermissionedMethodsByPermission()Collection<MethodDescriptor>getTransactionMethodDescriptors()protected Collection<MethodDescriptor>getTransactionMethods(ClassLoader classLoader)StringgetTransactionType()The transaction type of this ejb.Set<MethodDescriptor>getTxBusinessMethodDescriptors()Returns the full set of transactional business method descriptors I have.Set<MethodDescriptor>getUncheckedMethodDescriptors()longgetUniqueId()BooleangetUsesCallerIdentity()Get the usesCallerIdentity flagStringgetWebServiceEndpointInterfaceName()booleanhasAroundInvokeMethod()booleanhasAroundTimeoutMethod()booleanhasInterceptorClass(String interceptorClassName)booleanhasPostConstructMethod()booleanhasPreDestroyMethod()booleanhasResolvedResourceReferences()Returns true if this ejb descriptor has resource references that are resolved.booleanhasScheduledTimerMethodFromDD(Method timerMethod)booleanhasWebServiceEndpointInterface()booleanisDistributedTransactionScope()Gets the transaction scope of this ejb.booleanisLocalBean()booleanisLocalBusinessInterfacesSupported()booleanisLocalInterfacesSupported()booleanisRemoteBusinessInterfacesSupported()Returns true if the EJB can be accessed remotelybooleanisRemoteInterfacesSupported()booleanisTimedObject()Returns true if a timer has been set with this objectbooleanisUsesDefaultTransaction()voidnotifyNewModule(WebBundleDescriptor wbd)Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.voidprint(StringBuilder toStringBuilder)Returns a formatted String of the attributes of this object.voidremoveEjbReferenceDescriptor(EjbReference ejbReference)Removes the specificed ejb reference from the receiver.voidremoveEjbReferencer(EjbReferenceDescriptor ref)voidremoveEnvironmentProperty(EnvironmentProperty environmentProperty)Removes the given environment property from me.voidremoveMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)Removes the specified message destination reference from the receiver.voidremovePermissionedMethod(MethodPermission mp, MethodDescriptor md)Remove a method permission from a method or a set of methodsvoidremoveResourceDescriptor(ResourceDescriptor descriptor)Removes the specified descriptor from the receiver.voidremoveResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)Removes the specified resource environment reference from the receiver.voidremoveResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)Removes the given resource reference from me.voidremoveRoleReference(RoleReference roleReference)Removes a role reference.voidremoveServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)Removes the specified service reference from the receiver.voidsetContainerTransactionFor(MethodDescriptor methodDescriptor, ContainerTransaction containerTransaction)Sets the container transaction for the given method descriptor.voidsetDistributedTransactionScope(boolean scope)Set the transaction scope of this ejb.voidsetEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor)voidsetEjbClassName(String ejbClassName)Sets the classname of the ejb.voidsetEJBLocalObjectImplClassName(String name)Sets the EJBLocalObject implementation classname of the ejb.voidsetEJBObjectImplClassName(String name)Sets the EJBObject implementation classname of the ejb.voidsetEjbTimeoutMethod(MethodDescriptor method)voidsetHomeClassName(String homeClassName)Sets the classname of the Home interface of this ejb.voidsetJndiName(String jndiName)Sets the JNDI name property of the reciever as a String.voidsetLocalBean(boolean localBean)Marks this ejb as a LocalBean.voidsetLocalClassName(String localClassName)Sets the classname for the local interface of this ejbvoidsetLocalHomeClassName(String localHomeClassName)Sets the classname for the local home interface of this ejbvoidsetLocalHomeImplClassName(String name)Sets the Local home implementation classname of the ejb.voidsetMappedName(String mappedName)voidsetMethodContainerTransactions(Hashtable<MethodDescriptor,ContainerTransaction> methodContainerTransactions)Sets the container transactions for all the method descriptors of this ejb.voidsetRemoteClassName(String remoteClassName)Sets the classname of the Remote interface of this ejb.voidsetRemoteHomeImplClassName(String name)Sets the remote home implementation classname of the ejb.voidsetRunAsIdentity(RunAsIdentityDescriptor desc)voidsetSecurityIdentityDescription(String s)Set the description field of security-identityabstract voidsetTransactionType(String transactionType)Set the transaction type of this ejb.abstract voidsetType(String type)voidsetUniqueId(long id)voidsetUsesCallerIdentity(boolean flag)Set the usesCallerIdentity flagvoidsetUsesDefaultTransaction()Have default method transaction if isBoundsChecking is on.voidsetWebServiceEndpointInterfaceName(String name)voidvisit(DescriptorVisitor aVisitor)visit the descriptor and all sub descriptors with a DOL visitor implementationvoidvisit(EjbVisitor aVisitor)visit the descriptor and all sub descriptors with a DOL visitor implementation-
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
getType
-
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getName
-
-
-
-
Field Detail
-
LOCAL_TRANSACTION_SCOPE
public static final String LOCAL_TRANSACTION_SCOPE
- See Also:
- Constant Field Values
-
DISTRIBUTED_TRANSACTION_SCOPE
public static final String DISTRIBUTED_TRANSACTION_SCOPE
- See Also:
- Constant Field Values
-
transactionType
protected String transactionType
-
usesDefaultTransaction
protected boolean usesDefaultTransaction
-
usesCallerIdentity
protected Boolean usesCallerIdentity
-
securityIdentityDescription
protected 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...
-
getEjbTypeForDisplay
public abstract String getEjbTypeForDisplay()
- Specified by:
getEjbTypeForDisplayin interfaceEjbDescriptor
-
addEjbDescriptor
public void addEjbDescriptor(EjbDescriptor other)
-
setType
public abstract void setType(String type)
-
getHomeClassName
public String getHomeClassName()
Returns the classname of the Home interface of this ejb.- Specified by:
getHomeClassNamein interfaceEjbDescriptor- Returns:
-
setHomeClassName
public void setHomeClassName(String homeClassName)
Sets the classname of the Home interface of this ejb.- Parameters:
homeClassName-
-
setRemoteClassName
public void setRemoteClassName(String remoteClassName)
Sets the classname of the Remote interface of this ejb.- Parameters:
remoteClassName-
-
getRemoteClassName
public String getRemoteClassName()
Returns the classname of the Remote interface of this ejb.- Specified by:
getRemoteClassNamein interfaceEjbDescriptor- Returns:
-
setLocalHomeClassName
public void setLocalHomeClassName(String localHomeClassName)
Sets the classname for the local home interface of this ejb- Parameters:
localHomeClassName- fully qualified class name for the interface
-
getLocalHomeClassName
public String getLocalHomeClassName()
- Specified by:
getLocalHomeClassNamein interfaceEjbDescriptor- Returns:
- the fully qualified class name for the local home interface of this ejb
-
setLocalClassName
public void setLocalClassName(String localClassName)
Sets the classname for the local interface of this ejb- Parameters:
localClassName- fully qualified class name for the interface
-
getLocalClassName
public String getLocalClassName()
- Specified by:
getLocalClassNamein interfaceEjbDescriptor- Returns:
- the fully qualified class name for the local interface of this ejb
-
addNoInterfaceLocalBeanClass
public void addNoInterfaceLocalBeanClass(String className)
Add a classname for a no-interface view of the local ejb- Parameters:
className- fully qualified class name for the interface
-
getNoInterfaceLocalBeanClasses
public Set<String> getNoInterfaceLocalBeanClasses()
- Returns:
- all the public classes of this no-interface local ejb
-
addRemoteBusinessClassName
public void addRemoteBusinessClassName(String className)
-
addLocalBusinessClassName
public void addLocalBusinessClassName(String className)
-
getRemoteBusinessClassNames
public Set<String> getRemoteBusinessClassNames()
Returns the set of remote business interface names for this ejb. If the bean does not expose a remote business view, return a set of size 0.- Specified by:
getRemoteBusinessClassNamesin interfaceEjbDescriptor- Returns:
-
getLocalBusinessClassNames
public Set<String> getLocalBusinessClassNames()
Returns the set of local business interface names for this ejb. If the bean does not expose a local business view, return a set of size 0.- Specified by:
getLocalBusinessClassNamesin interfaceEjbDescriptor- Returns:
-
setWebServiceEndpointInterfaceName
public void setWebServiceEndpointInterfaceName(String name)
- Specified by:
setWebServiceEndpointInterfaceNamein interfaceEjbDescriptor
-
getWebServiceEndpointInterfaceName
public String getWebServiceEndpointInterfaceName()
- Specified by:
getWebServiceEndpointInterfaceNamein interfaceEjbDescriptor
-
getJndiName
public String getJndiName()
Description copied from interface:NamedDescriptorReturns the JNDI name property of the receiver.- Specified by:
getJndiNamein interfaceNamedDescriptor- Returns:
- java.lang.String JNDI name
-
setJndiName
public void setJndiName(String jndiName)
Description copied from interface:NamedDescriptorSets the JNDI name property of the reciever as a String.- Specified by:
setJndiNamein interfaceNamedDescriptor- Parameters:
jndiName- the new JNDI name of the receiver.
-
getMappedName
public String getMappedName()
-
setMappedName
public void setMappedName(String mappedName)
-
setLocalBean
public void setLocalBean(boolean localBean)
Marks this ejb as a LocalBean.
-
isLocalInterfacesSupported
public boolean isLocalInterfacesSupported()
- Specified by:
isLocalInterfacesSupportedin interfaceEjbDescriptor- Returns:
- true if the EJB described has a LocalHome/Local interface
-
isLocalBusinessInterfacesSupported
public boolean isLocalBusinessInterfacesSupported()
- Specified by:
isLocalBusinessInterfacesSupportedin interfaceEjbDescriptor- Returns:
- true if the EJB has 1 or more local business interfaces
-
isRemoteInterfacesSupported
public boolean isRemoteInterfacesSupported()
- Specified by:
isRemoteInterfacesSupportedin interfaceEjbDescriptor- Returns:
- true if the EJB has a RemoteHome/Remote interface
-
isRemoteBusinessInterfacesSupported
public boolean isRemoteBusinessInterfacesSupported()
Description copied from interface:EjbDescriptorReturns true if the EJB can be accessed remotely- Specified by:
isRemoteBusinessInterfacesSupportedin interfaceEjbDescriptor- Returns:
- true if the EJB has 1 or more remote business interfaces
-
hasWebServiceEndpointInterface
public boolean hasWebServiceEndpointInterface()
- Specified by:
hasWebServiceEndpointInterfacein interfaceEjbDescriptor- Returns:
- true if this is an EJB that implements a web service endpoint.
-
isLocalBean
public boolean isLocalBean()
- Specified by:
isLocalBeanin interfaceEjbDescriptor- Returns:
- true if this is an EJB provides a no interface Local view.
-
setEjbClassName
public void setEjbClassName(String ejbClassName)
Sets the classname of the ejb.- Parameters:
ejbClassName-
-
getEjbClassName
public String getEjbClassName()
Returns the classname of the ejb.- Specified by:
getEjbClassNamein interfaceEjbDescriptor
-
getEjbImplClassName
public 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 returngetEjbClassName()and the method is redefined in IASEjbCMPDescriptor.- Specified by:
getEjbImplClassNamein interfaceEjbDescriptor- Returns:
-
setRemoteHomeImplClassName
public void setRemoteHomeImplClassName(String name)
Sets the remote home implementation classname of the ejb.- Parameters:
name-
-
getRemoteHomeImplClassName
public String getRemoteHomeImplClassName()
Returns the classname of the remote home impl.- Returns:
-
setLocalHomeImplClassName
public void setLocalHomeImplClassName(String name)
Sets the Local home implementation classname of the ejb.- Parameters:
name-
-
getLocalHomeImplClassName
public String getLocalHomeImplClassName()
Returns the classname of the Local home impl.- Returns:
-
setEJBLocalObjectImplClassName
public void setEJBLocalObjectImplClassName(String name)
Sets the EJBLocalObject implementation classname of the ejb.- Parameters:
name-
-
getEJBLocalObjectImplClassName
public String getEJBLocalObjectImplClassName()
Returns the classname of the EJBLocalObject impl.
-
setEJBObjectImplClassName
public void setEJBObjectImplClassName(String name)
Sets the EJBObject implementation classname of the ejb.- Parameters:
name-
-
getEJBObjectImplClassName
public String getEJBObjectImplClassName()
Returns the classname of the EJBObject impl.- Returns:
-
getTransactionType
public String getTransactionType()
The transaction type of this ejb.- Specified by:
getTransactionTypein interfaceEjbDescriptor- Returns:
-
setTransactionType
public abstract void setTransactionType(String transactionType)
Set the transaction type of this ejb.- Parameters:
transactionType-
-
getPossibleTransactionAttributes
public Vector<ContainerTransaction> 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()
Returns true if a timer has been set with this object- Returns:
-
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- Parameters:
scheduleDescriptor-
-
hasScheduledTimerMethodFromDD
public boolean hasScheduledTimerMethodFromDD(Method timerMethod)
-
getScheduledTimerDescriptors
public List<ScheduledTimerDescriptor> getScheduledTimerDescriptors()
-
getAroundInvokeDescriptors
public Set<LifecycleCallbackDescriptor> getAroundInvokeDescriptors()
-
addAroundInvokeDescriptor
public void addAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)
-
getAroundInvokeDescriptorByClass
public LifecycleCallbackDescriptor getAroundInvokeDescriptorByClass(String className)
-
hasAroundInvokeMethod
public boolean hasAroundInvokeMethod()
-
getAroundTimeoutDescriptors
public Set<LifecycleCallbackDescriptor> getAroundTimeoutDescriptors()
-
addAroundTimeoutDescriptor
public void addAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)
-
getAroundTimeoutDescriptorByClass
public LifecycleCallbackDescriptor getAroundTimeoutDescriptorByClass(String className)
-
hasAroundTimeoutMethod
public boolean hasAroundTimeoutMethod()
-
addFrameworkInterceptor
public void addFrameworkInterceptor(InterceptorDescriptor interceptor)
- Specified by:
addFrameworkInterceptorin interfaceEjbDescriptor
-
getFrameworkInterceptors
public 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.
-
getLifecycleCallbackDescriptors
public Set<LifecycleCallbackDescriptor> getLifecycleCallbackDescriptors()
-
applyInterceptors
public void applyInterceptors(InterceptorBindingTranslator bindingTranslator)
Derive all interceptors that are applicable to this bean.- Parameters:
bindingTranslator-
-
hasInterceptorClass
public boolean hasInterceptorClass(String interceptorClassName)
- Specified by:
hasInterceptorClassin interfaceEjbDescriptor
-
addInterceptorClass
public void addInterceptorClass(EjbInterceptor interceptor)
- Specified by:
addInterceptorClassin interfaceEjbDescriptor
-
appendToInterceptorChain
public void appendToInterceptorChain(List<EjbInterceptor> chain)
- Specified by:
appendToInterceptorChainin interfaceEjbDescriptor
-
getInterceptorClasses
public 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 Set<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 Map<MethodDescriptor,List<EjbInterceptor>> getMethodInterceptorsMap()
-
getInterceptorChain
public List<EjbInterceptor> getInterceptorChain()
-
getAroundInvokeInterceptors
public 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.- Parameters:
businessMethod-- Returns:
-
getAroundTimeoutInterceptors
public 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.- Parameters:
businessMethod-- Returns:
-
addMethodLevelChain
public void addMethodLevelChain(List<EjbInterceptor> chain, Method m, boolean aroundInvoke)
- Specified by:
addMethodLevelChainin interfaceEjbDescriptor
-
getCallbackInterceptors
public 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.- Parameters:
type-- Returns:
-
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.- Parameters:
scope-
-
setUsesCallerIdentity
public void setUsesCallerIdentity(boolean flag)
Set the usesCallerIdentity flag- Specified by:
setUsesCallerIdentityin interfaceEjbDescriptor- Parameters:
flag-
-
getUsesCallerIdentity
public Boolean getUsesCallerIdentity()
Get the usesCallerIdentity flag- Specified by:
getUsesCallerIdentityin interfaceEjbDescriptor- Returns:
- Boolean.TRUE if this bean uses caller identity null if this is called before validator visit
-
getSecurityIdentityDescription
public String getSecurityIdentityDescription()
Get the description field of security-identity- Returns:
-
setSecurityIdentityDescription
public void setSecurityIdentityDescription(String s)
Set the description field of security-identity- Parameters:
s-
-
setRunAsIdentity
public void setRunAsIdentity(RunAsIdentityDescriptor desc)
- Specified by:
setRunAsIdentityin interfaceEjbDescriptor
-
getRunAsIdentity
public RunAsIdentityDescriptor getRunAsIdentity()
- Specified by:
getRunAsIdentityin interfaceEjbDescriptor
-
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 Hashtable<MethodDescriptor,ContainerTransaction> 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.- Parameters:
methodDescriptor-containerTransaction-
-
setMethodContainerTransactions
public void setMethodContainerTransactions(Hashtable<MethodDescriptor,ContainerTransaction> 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.- Parameters:
methodContainerTransactions-
-
getContainerTransactionFor
public ContainerTransaction getContainerTransactionFor(MethodDescriptor methodDescriptor)
Fetches the assigned container transaction object for the given method object or null.- Parameters:
methodDescriptor-- Returns:
-
getContainerTransaction
public ContainerTransaction getContainerTransaction()
returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return null- Returns:
-
getIORConfigurationDescriptors
public Set<EjbIORConfigurationDescriptor> getIORConfigurationDescriptors()
- Specified by:
getIORConfigurationDescriptorsin interfaceEjbDescriptor
-
addIORConfigurationDescriptor
public void addIORConfigurationDescriptor(EjbIORConfigurationDescriptor val)
-
getPermissionedRoles
public Set<Role> getPermissionedRoles()
- Specified by:
getPermissionedRolesin interfaceEjbDescriptor- Returns:
- the set of roles to which have been assigned method permissions.
-
getPermissionedMethodsByPermission
public Map<MethodPermission,Set<MethodDescriptor>> 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- Specified by:
addPermissionedMethodin interfaceEjbDescriptor- Parameters:
mp- is the new method permission to assignmd- describe the method or set of methods this permission apply to
-
getMethodPermissionsFromDD
public Map<MethodPermission,List<MethodDescriptor>> getMethodPermissionsFromDD()
Get a record of all the Method Permissions exactly as they were in the`DD- Specified by:
getMethodPermissionsFromDDin interfaceEjbDescriptor- Returns:
-
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 removemd- describe the method or set of methods this permission apply to
-
getStyledPermissionedMethodsByPermission
public Map<MethodPermission,Set<MethodDescriptor>> getStyledPermissionedMethodsByPermission()
- Returns:
- a map of permission to style 1 or 2 method descriptors
-
getUncheckedMethodDescriptors
public Set<MethodDescriptor> getUncheckedMethodDescriptors()
- Returns:
- a Set of method descriptors for all the methods associated with an unchecked method permission
-
getExcludedMethodDescriptors
public Set<MethodDescriptor> getExcludedMethodDescriptors()
- Returns:
- a Set of method descriptors for all the methoda assoicated with an excluded method permission
-
getMethodPermissionsFor
public Set<MethodPermission> getMethodPermissionsFor(MethodDescriptor methodDescriptor)
- Specified by:
getMethodPermissionsForin interfaceEjbDescriptor- Parameters:
methodDescriptor-- Returns:
- the set of method permission assigned to a ejb method descriptor.
-
getEjbReferenceDescriptors
public final Set<EjbReference> getEjbReferenceDescriptors()
Return the set of ejb references this ejb declares.- Specified by:
getEjbReferenceDescriptorsin interfaceEjbReferenceContainer- Specified by:
getEjbReferenceDescriptorsin interfaceJndiNameEnvironment- Returns:
-
addEjbReferenceDescriptor
public final void addEjbReferenceDescriptor(EjbReference ejbReference)
Adds a reference to another ejb to me.- Specified by:
addEjbReferenceDescriptorin interfaceEjbReferenceContainer- Specified by:
addEjbReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
ejbReference-
-
removeEjbReferenceDescriptor
public final void removeEjbReferenceDescriptor(EjbReference ejbReference)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specificed ejb reference from the receiver.- Specified by:
removeEjbReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
ejbReference- the EjbReferenceDescriptor to remove.
-
getPostConstructDescriptors
public final Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of post-construct descriptors.- Specified by:
getPostConstructDescriptorsin interfaceJndiNameEnvironment- Returns:
- java.util.Set of LifecycleCallbackDescriptor post-construct objects
-
addPostConstructDescriptor
public final void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified post-construct descriptor to the receiver.- Specified by:
addPostConstructDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
postConstructDesc- the post-construct LifecycleCallbackDescriptor to add.
-
getPostConstructDescriptorByClass
public final LifecycleCallbackDescriptor getPostConstructDescriptorByClass(String className)
Description copied from interface:JndiNameEnvironmentReturn the post-construct descriptor corresponding to the given name.- Specified by:
getPostConstructDescriptorByClassin interfaceJndiNameEnvironment- Returns:
- LifecycleCallbackDescriptor post-construct object
-
getPreDestroyDescriptors
public final Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of pre-destroy descriptors.- Specified by:
getPreDestroyDescriptorsin interfaceJndiNameEnvironment- Returns:
- java.util.Set of LifecycleCallbackDescriptor pre-destroy objects
-
addPreDestroyDescriptor
public final void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified pre-destroy descriptor to the receiver.- Specified by:
addPreDestroyDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
preDestroyDesc- the pre-destroy LifecycleCallbackDescriptor to add.
-
getPreDestroyDescriptorByClass
public final LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(String className)
Description copied from interface:JndiNameEnvironmentReturn the pre-destroy descriptor corresponding to the given name.- Specified by:
getPreDestroyDescriptorByClassin interfaceJndiNameEnvironment- Returns:
- LifecycleCallbackDescriptor pre-destroy object
-
getServiceReferenceDescriptors
public final Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of service reference descriptors.- Specified by:
getServiceReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getServiceReferenceDescriptorsin interfaceServiceReferenceContainer- Returns:
- java.util.Set of ServiceReferenceDescriptor objects
-
addServiceReferenceDescriptor
public final void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified service reference to the receiver.- Specified by:
addServiceReferenceDescriptorin interfaceServiceReferenceContainer- Specified by:
addServiceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
serviceRef- the ServiceReferenceDescriptor to add.
-
removeServiceReferenceDescriptor
public final void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified service reference from the receiver.- Specified by:
removeServiceReferenceDescriptorin interfaceServiceReferenceContainer- Specified by:
removeServiceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
serviceRef- the ServiceReferenceDescriptor to remove.
-
getServiceReferenceByName
public final ServiceReferenceDescriptor getServiceReferenceByName(String name)
Looks up an service reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getServiceReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getServiceReferenceByNamein interfaceServiceReferenceContainer- Parameters:
name-- Returns:
-
getMessageDestinationReferenceDescriptors
public final Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of message destination reference descriptors.- Specified by:
getMessageDestinationReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getMessageDestinationReferenceDescriptorsin interfaceMessageDestinationReferenceContainer- Returns:
- java.util.Set of MessageDestinationReferenceDescriptor objects
-
addMessageDestinationReferenceDescriptor
public final void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified message destination reference to the receiver.- Specified by:
addMessageDestinationReferenceDescriptorin interfaceMessageDestinationReferenceContainer- Specified by:
addMessageDestinationReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
messageDestRef- the MessageDestinationReferenceDescriptor to add.
-
removeMessageDestinationReferenceDescriptor
public final void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified message destination reference from the receiver.- Specified by:
removeMessageDestinationReferenceDescriptorin interfaceMessageDestinationReferenceContainer- Specified by:
removeMessageDestinationReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
msgDestRef- MessageDestinationReferenceDescriptor to remove.
-
getMessageDestinationReferenceByName
public final MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(String name)
Looks up an message destination reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getMessageDestinationReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getMessageDestinationReferenceByNamein interfaceMessageDestinationReferenceContainer- Parameters:
name-- Returns:
-
getResourceDescriptors
public final Set<ResourceDescriptor> getResourceDescriptors(JavaEEResourceType type)
Description copied from interface:JndiNameEnvironmentReturn a set of descriptors based on the type.- Specified by:
getResourceDescriptorsin interfaceJndiNameEnvironment- Overrides:
getResourceDescriptorsin classCommonResourceDescriptor- Returns:
- java.util.Set of descriptor objects
-
addResourceDescriptor
public final void addResourceDescriptor(ResourceDescriptor descriptor)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified descriptor to the receiver.- Specified by:
addResourceDescriptorin interfaceWritableJndiNameEnvironment- Overrides:
addResourceDescriptorin classCommonResourceDescriptor- Parameters:
descriptor- Descriptor to add.
-
removeResourceDescriptor
public final void removeResourceDescriptor(ResourceDescriptor descriptor)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified descriptor from the receiver.- Specified by:
removeResourceDescriptorin interfaceWritableJndiNameEnvironment- Overrides:
removeResourceDescriptorin classCommonResourceDescriptor- Parameters:
descriptor- Descriptor to remove.
-
getAllResourcesDescriptors
public final Set<ResourceDescriptor> getAllResourcesDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of descriptors.- Specified by:
getAllResourcesDescriptorsin interfaceJndiNameEnvironment- Overrides:
getAllResourcesDescriptorsin classCommonResourceDescriptor- Returns:
- java.util.Set of descriptor objects
-
getAllResourcesDescriptors
public final Set<ResourceDescriptor> getAllResourcesDescriptors(Class givenClazz)
Description copied from interface:JndiNameEnvironmentReturn a set of descriptors based on the class value.- Specified by:
getAllResourcesDescriptorsin interfaceJndiNameEnvironment- Overrides:
getAllResourcesDescriptorsin classCommonResourceDescriptor- Returns:
- java.util.Set of descriptor objects
-
getResourceEnvReferenceDescriptors
public final Set<ResourceEnvReferenceDescriptor> getResourceEnvReferenceDescriptors()
Return the set of resource environment references this ejb declares.- Specified by:
getResourceEnvReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getResourceEnvReferenceDescriptorsin interfaceResourceEnvReferenceContainer- Returns:
-
addResourceEnvReferenceDescriptor
public final void addResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Description copied from interface:WritableJndiNameEnvironmentAdds the specified resource environment reference to the receiver.- Specified by:
addResourceEnvReferenceDescriptorin interfaceResourceEnvReferenceContainer- Specified by:
addResourceEnvReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceEnvReference- the ResourceEnvReferenceDescriptor to add.
-
removeResourceEnvReferenceDescriptor
public final void removeResourceEnvReferenceDescriptor(ResourceEnvReferenceDescriptor resourceEnvReference)
Description copied from interface:WritableJndiNameEnvironmentRemoves the specified resource environment reference from the receiver.- Specified by:
removeResourceEnvReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceEnvReference- the ResourceEnvReferenceDescriptor to remove.
-
getResourceEnvReferenceByName
public final ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name)
Description copied from interface:JndiNameEnvironmentReturn the resource environment reference descriptor corresponding to the given name.- Specified by:
getResourceEnvReferenceByNamein interfaceJndiNameEnvironment- Specified by:
getResourceEnvReferenceByNamein interfaceResourceEnvReferenceContainer- Returns:
- ResourceEnvReferenceDescriptor object
-
getResourceReferenceDescriptors
public final Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
Return the set of resource references this ejb declares.- Specified by:
getResourceReferenceDescriptorsin interfaceJndiNameEnvironment- Specified by:
getResourceReferenceDescriptorsin interfaceResourceReferenceContainer- Returns:
-
addResourceReferenceDescriptor
public final void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a resource reference to me.- Specified by:
addResourceReferenceDescriptorin interfaceResourceReferenceContainer- Specified by:
addResourceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceReference-
-
removeResourceReferenceDescriptor
public final void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from me.- Specified by:
removeResourceReferenceDescriptorin interfaceWritableJndiNameEnvironment- Parameters:
resourceReference- the ResourceReferenceDescriptor to remove.
-
getEnvironmentPropertyByName
public final EnvironmentProperty getEnvironmentPropertyByName(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:
getEnvironmentPropertyByNamein interfaceJndiNameEnvironment- Parameters:
name-- Returns:
- EnvironmentProperty descriptor
-
getEnvironmentProperties
public final Set<EnvironmentProperty> getEnvironmentProperties()
Return a copy of the structure holding the environment properties.- Specified by:
getEnvironmentPropertiesin interfaceJndiNameEnvironment- Returns:
- java.util.Set of EnvironmentProperty objects
-
addEnvironmentProperty
public final void addEnvironmentProperty(EnvironmentProperty environmentProperty)
Add the supplied environment property to the ejb descriptor's list.- Specified by:
addEnvironmentPropertyin interfaceWritableJndiNameEnvironment- Parameters:
environmentProperty- the EnvironmentProperty to add.
-
removeEnvironmentProperty
public final void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the given environment property from me.- Specified by:
removeEnvironmentPropertyin interfaceWritableJndiNameEnvironment- Parameters:
environmentProperty- the EnvironmentProperty to remove.
-
getEntityManagerFactoryReferenceDescriptors
public final Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of entity manager factory reference descriptors.- Specified by:
getEntityManagerFactoryReferenceDescriptorsin interfaceJndiNameEnvironment
-
getEntityManagerFactoryReferenceByName
public final EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(String name)
Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerFactoryReferenceByNamein interfaceJndiNameEnvironment- Parameters:
name-- Returns:
-
addEntityManagerFactoryReferenceDescriptor
public final void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
- Specified by:
addEntityManagerFactoryReferenceDescriptorin interfaceWritableJndiNameEnvironment
-
getEntityManagerReferenceDescriptors
public final Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
Description copied from interface:JndiNameEnvironmentReturn a set of entity manager reference descriptors.- Specified by:
getEntityManagerReferenceDescriptorsin interfaceJndiNameEnvironment
-
getEntityManagerReferenceByName
public final EntityManagerReferenceDescriptor getEntityManagerReferenceByName(String name)
Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerReferenceByNamein interfaceJndiNameEnvironment- Parameters:
name-- Returns:
-
addEntityManagerReferenceDescriptor
public final void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
- Specified by:
addEntityManagerReferenceDescriptorin interfaceWritableJndiNameEnvironment
-
getInjectableResourcesByClass
public final List<InjectionCapable> getInjectableResourcesByClass(String className)
- Specified by:
getInjectableResourcesByClassin interfaceJndiNameEnvironment
-
getInjectionInfoByClass
public final InjectionInfo getInjectionInfoByClass(Class clazz)
- Specified by:
getInjectionInfoByClassin interfaceJndiNameEnvironment
-
hasPostConstructMethod
public boolean hasPostConstructMethod()
-
hasPreDestroyMethod
public boolean hasPreDestroyMethod()
-
getResourceReferenceDescriptors
public Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors(boolean resolved)
Return the set of resource references this ejb declares that have been resolved.- Returns:
-
getResourceReferenceByName
public ResourceReferenceDescriptor getResourceReferenceByName(String name)
Return the resource object corresponding to the supplied name or throw an illegal argument exception.- Specified by:
getResourceReferenceByNamein interfaceResourceReferenceContainer- Parameters:
name-- Returns:
-
hasResolvedResourceReferences
public boolean hasResolvedResourceReferences()
Returns true if this ejb descriptor has resource references that are resolved.
-
getEjbReference
public EjbReference getEjbReference(String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException.- Specified by:
getEjbReferencein interfaceEjbReferenceContainer- Parameters:
name-- Returns:
-
getRoleReferences
public Set<RoleReference> getRoleReferences()
Return a copy of the role references set.- Specified by:
getRoleReferencesin interfaceEjbDescriptor- Returns:
-
addRoleReference
public void addRoleReference(RoleReference roleReference)
Adds a role reference.- Specified by:
addRoleReferencein interfaceEjbDescriptor- Parameters:
roleReference-
-
removeRoleReference
public void removeRoleReference(RoleReference roleReference)
Removes a role reference.- Parameters:
roleReference-
-
getRoleReferenceByName
public RoleReference getRoleReferenceByName(String roleReferenceName)
Returns a matching role reference by name or throw an IllegalArgumentException.- Specified by:
getRoleReferenceByNamein interfaceEjbDescriptor- Parameters:
roleReferenceName-- Returns:
-
getEjbBundleDescriptor
public EjbBundleDescriptorImpl getEjbBundleDescriptor()
Gets the containing ejb bundle descriptor..- Specified by:
getEjbBundleDescriptorin interfaceEjbDescriptor- Returns:
-
setEjbBundleDescriptor
public void setEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor)
-
notifyNewModule
public void notifyNewModule(WebBundleDescriptor wbd)
Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.- Specified by:
notifyNewModulein interfaceEjbDescriptor- Parameters:
wbd-
-
getApplication
public Application getApplication()
Gets the application to which this ejb descriptor belongs.- Specified by:
getApplicationin interfaceEjbDescriptor- Returns:
-
getMethodDescriptors
public Set<MethodDescriptor> getMethodDescriptors()
Returns the full set of method descriptors (from all the methods on the home and remote interfaces).- Specified by:
getMethodDescriptorsin interfaceEjbDescriptor- Returns:
- the full set of method descriptors
-
getTxBusinessMethodDescriptors
public Set<MethodDescriptor> getTxBusinessMethodDescriptors()
Returns the full set of transactional business method descriptors I have.- Returns:
-
getSecurityBusinessMethodDescriptors
public Set<MethodDescriptor> getSecurityBusinessMethodDescriptors()
Returns the full set of security business method descriptors.- Specified by:
getSecurityBusinessMethodDescriptorsin interfaceEjbDescriptor- Returns:
-
getClientBusinessMethodDescriptors
public Set<MethodDescriptor> getClientBusinessMethodDescriptors()
Returns the set of local/remote/no-interface view business method descriptors.- Returns:
-
addAllInterfaceMethodsIn
protected void addAllInterfaceMethodsIn(Collection<MethodDescriptor> methodDescriptors, Class<?> clazz, String methodInterface)
-
getBusinessMethodDescriptorFor
public MethodDescriptor getBusinessMethodDescriptorFor(Method m, String methodIntf)
- Parameters:
m-methodIntf-- Returns:
- the MethodDescriptor for the given Method object
-
getTransactionMethodDescriptors
public Collection<MethodDescriptor> getTransactionMethodDescriptors()
- Returns:
- the collection of MethodDescriptors to which ContainerTransactions may be assigned.
-
getTransactionMethods
protected Collection<MethodDescriptor> getTransactionMethods(ClassLoader classLoader)
- Parameters:
classLoader-- Returns:
- a collection of MethodDescriptor for methods which may have a associated transaction attribute
-
getOptionalLocalBusinessMethods
public Set<Method> getOptionalLocalBusinessMethods()
Return the set of method objects representing no-interface view- Returns:
-
getContainerFactoryQualifier
public abstract String getContainerFactoryQualifier()
-
getMethods
public Vector<Method> getMethods()
Return the set of method objects on my home and remote interfaces.
-
getMethods
public Vector<Method> getMethods(ClassLoader classLoader)
Return the ejb method objects, i.e. the methods on the home and remote interfaces.- Parameters:
classLoader-- Returns:
-
getFields
public Vector<Field> getFields()
Return a Vector of the Field objects of this ejb.- Returns:
-
getFieldDescriptors
public Vector<FieldDescriptor> getFieldDescriptors()
- Returns:
-
removeEjbReferencer
public void removeEjbReferencer(EjbReferenceDescriptor ref)
- Specified by:
removeEjbReferencerin interfaceEjbDescriptor
-
addEjbReferencer
public void addEjbReferencer(EjbReferenceDescriptor ref)
- Specified by:
addEjbReferencerin interfaceEjbDescriptor
-
getAllEjbReferencers
public Set<EjbReferenceDescriptor> getAllEjbReferencers()
-
setUniqueId
public void setUniqueId(long id)
- Specified by:
setUniqueIdin interfaceEjbDescriptor
-
getUniqueId
public long getUniqueId()
- Specified by:
getUniqueIdin interfaceEjbDescriptor
-
print
public void print(StringBuilder toStringBuilder)
Returns a formatted String of the attributes of this object.- Overrides:
printin classDescriptor- Parameters:
toStringBuilder-
-
visit
public void visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation- Overrides:
visitin classDescriptor- 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.- Specified by:
allMechanismsRequireSSLin interfaceEjbDescriptor- Returns:
-
-