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:
com.sun.enterprise.deployment.EjbDescriptor,com.sun.enterprise.deployment.JndiNameEnvironment,com.sun.enterprise.deployment.NamedDescriptor,com.sun.enterprise.deployment.types.EjbReferenceContainer,com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer,com.sun.enterprise.deployment.types.ResourceEnvReferenceContainer,com.sun.enterprise.deployment.types.ResourceReferenceContainer,com.sun.enterprise.deployment.types.ServiceReferenceContainer,com.sun.enterprise.deployment.WritableJndiNameEnvironment,Serializable
- Direct Known Subclasses:
DummyEjbDescriptor,EjbEntityDescriptor,EjbMessageBeanDescriptor,EjbSessionDescriptor
public abstract class EjbDescriptor
extends com.sun.enterprise.deployment.CommonResourceDescriptor
implements com.sun.enterprise.deployment.EjbDescriptor
This abstract class encapsulates the meta-information describing Entity, Session and MessageDriven EJBs.
- Author:
- Danny Coward, Sanjeev Krishnan
- See Also:
-
Field Summary
FieldsFields inherited from interface com.sun.enterprise.deployment.EjbDescriptor
BEAN_TRANSACTION_TYPE, CONTAINER_TRANSACTION_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAllInterfaceMethodsIn(Collection<com.sun.enterprise.deployment.MethodDescriptor> methodDescriptors, Class<?> c, String methodIntf) voidaddAroundInvokeDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundInvokeDesc) voidaddAroundTimeoutDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundTimeoutDesc) voidaddEjbDescriptor(EjbDescriptor other) final voidaddEjbReferenceDescriptor(com.sun.enterprise.deployment.EjbReferenceDescriptor ejbReference) Adds a reference to another ejb to me.voidaddEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref) final voidaddEntityManagerFactoryReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor reference) final voidaddEntityManagerReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerReferenceDescriptor reference) final voidaddEnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty environmentProperty) Add the supplied environment property to the ejb descriptor's list.voidaddFrameworkInterceptor(com.sun.enterprise.deployment.InterceptorDescriptor interceptor) voidaddInterceptorClass(com.sun.enterprise.deployment.EjbInterceptor interceptor) voidaddIORConfigurationDescriptor(com.sun.enterprise.deployment.EjbIORConfigurationDescriptor val) voidaddLocalBusinessClassName(String className) final voidaddMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor messageDestRef) voidaddMethodLevelChain(List<com.sun.enterprise.deployment.EjbInterceptor> chain, Method m, boolean aroundInvoke) voidaddNoInterfaceLocalBeanClass(String className) Add a classname for a no-interface view of the local ejbvoidaddPermissionedMethod(com.sun.enterprise.deployment.MethodPermission mp, com.sun.enterprise.deployment.MethodDescriptor md) Add a new method permission to a method or a set of methodsfinal voidaddPostConstructDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor postConstructDesc) final voidaddPreDestroyDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor preDestroyDesc) voidaddRemoteBusinessClassName(String className) final voidaddResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor) final voidaddResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference) final voidaddResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) Adds a resource reference to me.voidaddRoleReference(com.sun.enterprise.deployment.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 methodfinal voidaddServiceReferenceDescriptor(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef) booleanThis method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.voidappendToInterceptorChain(List<com.sun.enterprise.deployment.EjbInterceptor> chain) voidSince 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<com.sun.enterprise.deployment.EjbReferenceDescriptor>final Set<com.sun.enterprise.deployment.ResourceDescriptor>final Set<com.sun.enterprise.deployment.ResourceDescriptor>getAllResourcesDescriptors(Class givenClazz) com.sun.enterprise.deployment.ApplicationGets the application to which this ejb descriptor belongs.com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetAroundInvokeDescriptorByClass(String className) Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>List<com.sun.enterprise.deployment.EjbInterceptor>getAroundInvokeInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod) com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetAroundTimeoutDescriptorByClass(String className) Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>List<com.sun.enterprise.deployment.EjbInterceptor>getAroundTimeoutInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod) com.sun.enterprise.deployment.MethodDescriptorgetBusinessMethodDescriptorFor(Method m, String methodIntf) List<com.sun.enterprise.deployment.EjbInterceptor>getCallbackInterceptors(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType type) Return the ordered list of interceptor info for a particular callback event type.Set<com.sun.enterprise.deployment.MethodDescriptor>abstract Stringreturns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return nullgetContainerTransactionFor(com.sun.enterprise.deployment.MethodDescriptor methodDescriptor) Fetches the assigned container transaction object for the given method object or null.Set<com.sun.enterprise.deployment.MethodDescriptor>Gets the containing ejb bundle descriptor..Returns the classname of the ejb.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.Returns the classname of the EJBLocalObject impl.Returns the classname of the EJBObject impl.com.sun.enterprise.deployment.EjbReferenceDescriptorgetEjbReference(String name) Return a reference to another ejb by the same name or throw an IllegalArgumentException.final Set<com.sun.enterprise.deployment.EjbReferenceDescriptor>Return the set of ejb references this ejb declares.com.sun.enterprise.deployment.MethodDescriptorabstract Stringfinal com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptorReturn the entity manager factory reference descriptor corresponding to the given name.final Set<com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor>final com.sun.enterprise.deployment.EntityManagerReferenceDescriptorReturn the entity manager factory reference descriptor corresponding to the given name.final Set<com.sun.enterprise.deployment.EntityManagerReferenceDescriptor>final Set<com.sun.enterprise.deployment.EnvironmentProperty>Return a copy of the structure holding the environment properties.final com.sun.enterprise.deployment.EnvironmentPropertyReturns the environment property object searching on the supplied key.List<com.sun.enterprise.deployment.InterceptorDescriptor>Returns the classname of the Home interface of this ejb.final List<com.sun.enterprise.deployment.InjectionCapable>getInjectableResourcesByClass(String className) final com.sun.enterprise.deployment.InjectionInfogetInjectionInfoByClass(Class clazz) List<com.sun.enterprise.deployment.EjbInterceptor>Set<com.sun.enterprise.deployment.EjbInterceptor>Return an unordered set of interceptor descriptors for this bean.Return an unordered set of the names of all interceptor classes for this bean.Set<com.sun.enterprise.deployment.EjbIORConfigurationDescriptor>org.glassfish.api.naming.SimpleJndiNameSet<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>Returns the set of local business interface names for this ejb.Returns the classname of the Local home impl.final com.sun.enterprise.deployment.MessageDestinationReferenceDescriptorLooks up an message destination reference with the given name.final Set<com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor>Hashtable<com.sun.enterprise.deployment.MethodDescriptor,ContainerTransaction> Set<com.sun.enterprise.deployment.MethodDescriptor>Returns the full set of method descriptors I have (from all the methods on my home and remote interfaces).Map<com.sun.enterprise.deployment.MethodDescriptor,List<com.sun.enterprise.deployment.EjbInterceptor>> Set<com.sun.enterprise.deployment.MethodPermission>getMethodPermissionsFor(com.sun.enterprise.deployment.MethodDescriptor methodDescriptor) HashMap<com.sun.enterprise.deployment.MethodPermission,ArrayList<com.sun.enterprise.deployment.MethodDescriptor>> Get a record of all the Method Permissions exactly as they were in the`DDgetMethods(ClassLoader classLoader) Map<com.sun.enterprise.deployment.MethodPermission,Set<com.sun.enterprise.deployment.MethodDescriptor>> Set<org.glassfish.security.common.Role>Set<com.sun.enterprise.deployment.MethodDescriptor>final com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPostConstructDescriptorByClass(String className) final Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>final com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPreDestroyDescriptorByClass(String className) final Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>Returns the set of remote business interface names for this ejb.Returns the classname of the Remote interface of this ejb.Returns the classname of the remote home impl.final Set<com.sun.enterprise.deployment.ResourceDescriptor>getResourceDescriptors(org.glassfish.deployment.common.JavaEEResourceType type) final com.sun.enterprise.deployment.ResourceEnvReferenceDescriptorfinal Set<com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor>Return the set of resource environment references this ejb declares.com.sun.enterprise.deployment.ResourceReferenceDescriptorReturn the resource object corresponding to the supplied name or throw an illegal argument exception.final Set<com.sun.enterprise.deployment.ResourceReferenceDescriptor>Return the set of resource references this ejb declares.Set<com.sun.enterprise.deployment.ResourceReferenceDescriptor>getResourceReferenceDescriptors(boolean resolved) Return the set of resource references this ejb declares that have been resolved.com.sun.enterprise.deployment.RoleReferencegetRoleReferenceByName(String roleReferenceName) Returns a matching role reference by name or throw an IllegalArgumentException.Set<com.sun.enterprise.deployment.RoleReference>Return a copy of the role references set.com.sun.enterprise.deployment.RunAsIdentityDescriptorSet<com.sun.enterprise.deployment.MethodDescriptor>Returns the full set of security business method descriptors I have.final com.sun.enterprise.deployment.ServiceReferenceDescriptorLooks up an service reference with the given name.final Set<com.sun.enterprise.deployment.ServiceReferenceDescriptor>Map<com.sun.enterprise.deployment.MethodPermission,Set<com.sun.enterprise.deployment.MethodDescriptor>> Collection<com.sun.enterprise.deployment.MethodDescriptor>protected Collection<com.sun.enterprise.deployment.MethodDescriptor>getTransactionMethods(ClassLoader classLoader) The transaction type of this ejb.Set<com.sun.enterprise.deployment.MethodDescriptor>longGet the usesCallerIdentity flagbooleanbooleanbooleanhasInterceptorClass(String interceptorClassName) booleanbooleanbooleanReturns true if this ejb descriptor has resource references that are resolved.booleanhasScheduledTimerMethodFromDD(Method timerMethod) booleanbooleanGets the transaction scope of this ejb.booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidnotifyNewModule(com.sun.enterprise.deployment.WebBundleDescriptor wbd) Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.voidprint(StringBuffer toStringBuffer) Returns a formatted String of the attributes of this object.final voidremoveEjbReferenceDescriptor(com.sun.enterprise.deployment.EjbReferenceDescriptor ejbReference) voidremoveEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref) final voidremoveEnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty environmentProperty) Removes the given environment property from me.final voidremoveMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor msgDestRef) voidremovePermissionedMethod(com.sun.enterprise.deployment.MethodPermission mp, com.sun.enterprise.deployment.MethodDescriptor md) Remove a method permission from a method or a set of methodsfinal voidremoveResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor) final voidremoveResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference) final voidremoveResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) Removes the given resource reference from me.voidremoveRoleReference(com.sun.enterprise.deployment.RoleReference roleReference) Removes a role reference.final voidremoveServiceReferenceDescriptor(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef) voidsetContainerTransactionFor(com.sun.enterprise.deployment.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.voidSets the EJBLocalObject implementation classname of the ejb.voidSets the EJBObject implementation classname of the ejb.voidsetEjbTimeoutMethod(com.sun.enterprise.deployment.MethodDescriptor method) voidsetHomeClassName(String homeClassName) Sets the classname of the Home interface of this ejb.voidsetJndiName(org.glassfish.api.naming.SimpleJndiName jndiName) 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 ejbvoidSets the Local home implementation classname of the ejb.voidsetMappedName(String mappedName) voidsetMethodContainerTransactions(Hashtable<com.sun.enterprise.deployment.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.voidSets the remote home implementation classname of the ejb.voidsetRunAsIdentity(com.sun.enterprise.deployment.RunAsIdentityDescriptor desc) voidSet the description field of security-identityabstract voidsetTransactionType(String transactionType) Set the transaction type of this ejb.abstract voidvoidsetUniqueId(long id) voidsetUsesCallerIdentity(boolean flag) Set the usesCallerIdentity flagvoidHave default method transaction if isBoundsChecking is on.voidvoidvisit(org.glassfish.deployment.common.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 implementationMethods inherited from class com.sun.enterprise.deployment.CommonResourceDescriptor
getResourceDescriptorMethods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUriMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.enterprise.deployment.EjbDescriptor
getTypeMethods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getName
-
Field Details
-
LOCAL_TRANSACTION_SCOPE
- See Also:
-
DISTRIBUTED_TRANSACTION_SCOPE
- See Also:
-
transactionType
-
-
Constructor Details
-
EjbDescriptor
protected EjbDescriptor()Default constructor. -
EjbDescriptor
-
-
Method Details
-
getEjbTypeForDisplay
- Specified by:
getEjbTypeForDisplayin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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.
-
addEjbDescriptor
-
setType
-
getHomeClassName
Returns the classname of the Home interface of this ejb.- Specified by:
getHomeClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setHomeClassName
Sets the classname of the Home interface of this ejb. -
setRemoteClassName
Sets the classname of the Remote interface of this ejb. -
getRemoteClassName
Returns the classname of the Remote interface of this ejb.- Specified by:
getRemoteClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setLocalHomeClassName
Sets the classname for the local home interface of this ejb- Parameters:
localHomeClassName- fully qualified class name for the interface
-
getLocalHomeClassName
- Specified by:
getLocalHomeClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- the fully qualified class name for the local home interface of this ejb
-
setLocalClassName
Sets the classname for the local interface of this ejb- Parameters:
localClassName- fully qualified class name for the interface
-
getLocalClassName
- Specified by:
getLocalClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- the fully qualified class name for the local interface of this ejb
-
addNoInterfaceLocalBeanClass
Add a classname for a no-interface view of the local ejb- Parameters:
className- fully qualified class name for the interface
-
getNoInterfaceLocalBeanClasses
- Returns:
- all the public classes of this no-interface local ejb
-
addRemoteBusinessClassName
-
addLocalBusinessClassName
-
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setWebServiceEndpointInterfaceName
- Specified by:
setWebServiceEndpointInterfaceNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getWebServiceEndpointInterfaceName
- Specified by:
getWebServiceEndpointInterfaceNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getJndiName
public org.glassfish.api.naming.SimpleJndiName getJndiName()- Specified by:
getJndiNamein interfacecom.sun.enterprise.deployment.NamedDescriptor
-
setJndiName
public void setJndiName(org.glassfish.api.naming.SimpleJndiName jndiName) - Specified by:
setJndiNamein interfacecom.sun.enterprise.deployment.NamedDescriptor
-
getMappedName
-
setMappedName
-
setLocalBean
public void setLocalBean(boolean localBean) Marks this ejb as a LocalBean. -
isLocalInterfacesSupported
public boolean isLocalInterfacesSupported()- Specified by:
isLocalInterfacesSupportedin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if the EJB described has a LocalHome/Local interface
-
isLocalBusinessInterfacesSupported
public boolean isLocalBusinessInterfacesSupported()- Specified by:
isLocalBusinessInterfacesSupportedin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if the EJB has 1 or more local business interfaces
-
isRemoteInterfacesSupported
public boolean isRemoteInterfacesSupported()- Specified by:
isRemoteInterfacesSupportedin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if the EJB has a RemoteHome/Remote interface
-
isRemoteBusinessInterfacesSupported
public boolean isRemoteBusinessInterfacesSupported()- Specified by:
isRemoteBusinessInterfacesSupportedin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if the EJB has 1 or more remote business interfaces
-
hasWebServiceEndpointInterface
public boolean hasWebServiceEndpointInterface()- Specified by:
hasWebServiceEndpointInterfacein interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if this is an EJB that implements a web service endpoint.
-
isLocalBean
public boolean isLocalBean()- Specified by:
isLocalBeanin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- true if this is an EJB provides a no interface Local view.
-
setEjbClassName
Sets the classname of the ejb. -
getEjbClassName
Returns the classname of the ejb.- Specified by:
getEjbClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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.- Specified by:
getEjbImplClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setRemoteHomeImplClassName
Sets the remote home implementation classname of the ejb. -
getRemoteHomeImplClassName
Returns the classname of the remote home impl. -
setLocalHomeImplClassName
Sets the Local home implementation classname of the ejb. -
getLocalHomeImplClassName
Returns the classname of the Local home impl. -
setEJBLocalObjectImplClassName
Sets the EJBLocalObject implementation classname of the ejb. -
getEJBLocalObjectImplClassName
Returns the classname of the EJBLocalObject impl. -
setEJBObjectImplClassName
Sets the EJBObject implementation classname of the ejb. -
getEJBObjectImplClassName
Returns the classname of the EJBObject impl. -
getTransactionType
The transaction type of this ejb.- Specified by:
getTransactionTypein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setTransactionType
Set the transaction type of this ejb. -
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 com.sun.enterprise.deployment.MethodDescriptor getEjbTimeoutMethod() -
setEjbTimeoutMethod
public void setEjbTimeoutMethod(com.sun.enterprise.deployment.MethodDescriptor method) -
addScheduledTimerDescriptor
-
addScheduledTimerDescriptorFromDD
Special method for overrides because more than one schedule can be specified on a single method -
hasScheduledTimerMethodFromDD
-
getScheduledTimerDescriptors
-
getAroundInvokeDescriptors
-
addAroundInvokeDescriptor
public void addAroundInvokeDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundInvokeDesc) -
getAroundInvokeDescriptorByClass
public com.sun.enterprise.deployment.LifecycleCallbackDescriptor getAroundInvokeDescriptorByClass(String className) -
hasAroundInvokeMethod
public boolean hasAroundInvokeMethod() -
getAroundTimeoutDescriptors
-
addAroundTimeoutDescriptor
public void addAroundTimeoutDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundTimeoutDesc) -
getAroundTimeoutDescriptorByClass
public com.sun.enterprise.deployment.LifecycleCallbackDescriptor getAroundTimeoutDescriptorByClass(String className) -
hasAroundTimeoutMethod
public boolean hasAroundTimeoutMethod() -
addFrameworkInterceptor
public void addFrameworkInterceptor(com.sun.enterprise.deployment.InterceptorDescriptor interceptor) - Specified by:
addFrameworkInterceptorin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> getLifecycleCallbackDescriptors() -
applyInterceptors
Derive all interceptors that are applicable to this bean. -
hasInterceptorClass
- Specified by:
hasInterceptorClassin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
addInterceptorClass
public void addInterceptorClass(com.sun.enterprise.deployment.EjbInterceptor interceptor) - Specified by:
addInterceptorClassin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
appendToInterceptorChain
- Specified by:
appendToInterceptorChainin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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
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
-
getInterceptorChain
-
getAroundInvokeInterceptors
public List<com.sun.enterprise.deployment.EjbInterceptor> getAroundInvokeInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod) - Returns:
- 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 List<com.sun.enterprise.deployment.EjbInterceptor> getAroundTimeoutInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod) - Returns:
- 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(List<com.sun.enterprise.deployment.EjbInterceptor> chain, Method m, boolean aroundInvoke) - Specified by:
addMethodLevelChainin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getCallbackInterceptors
public List<com.sun.enterprise.deployment.EjbInterceptor> getCallbackInterceptors(com.sun.enterprise.deployment.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- Specified by:
setUsesCallerIdentityin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getUsesCallerIdentity
Get the usesCallerIdentity flag- Specified by:
getUsesCallerIdentityin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- Boolean.TRUE if this bean uses caller identity null if this is called before validator visit
-
getSecurityIdentityDescription
- Returns:
- the description field of security-identity
-
setSecurityIdentityDescription
Set the description field of security-identity -
setRunAsIdentity
public void setRunAsIdentity(com.sun.enterprise.deployment.RunAsIdentityDescriptor desc) - Specified by:
setRunAsIdentityin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getRunAsIdentity
public com.sun.enterprise.deployment.RunAsIdentityDescriptor getRunAsIdentity()- Specified by:
getRunAsIdentityin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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<com.sun.enterprise.deployment.MethodDescriptor,ContainerTransaction> getMethodContainerTransactions()- Returns:
- a copy of the mapping held internally of method descriptors to container transaction objects.
-
setContainerTransactionFor
public void setContainerTransactionFor(com.sun.enterprise.deployment.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(Hashtable<com.sun.enterprise.deployment.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. -
getContainerTransactionFor
public ContainerTransaction getContainerTransactionFor(com.sun.enterprise.deployment.MethodDescriptor methodDescriptor) Fetches the assigned container transaction object for the given method object or null. -
getContainerTransaction
returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return null -
getIORConfigurationDescriptors
public Set<com.sun.enterprise.deployment.EjbIORConfigurationDescriptor> getIORConfigurationDescriptors()- Specified by:
getIORConfigurationDescriptorsin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
addIORConfigurationDescriptor
public void addIORConfigurationDescriptor(com.sun.enterprise.deployment.EjbIORConfigurationDescriptor val) -
getPermissionedRoles
- Specified by:
getPermissionedRolesin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getPermissionedMethodsByPermission
public Map<com.sun.enterprise.deployment.MethodPermission,Set<com.sun.enterprise.deployment.MethodDescriptor>> getPermissionedMethodsByPermission()- Returns:
- the Map of MethodPermission (keys) that have been assigned to MethodDescriptors (elements)
-
addPermissionedMethod
public void addPermissionedMethod(com.sun.enterprise.deployment.MethodPermission mp, com.sun.enterprise.deployment.MethodDescriptor md) Add a new method permission to a method or a set of methods- Specified by:
addPermissionedMethodin interfacecom.sun.enterprise.deployment.EjbDescriptor- Parameters:
mp- is the new method permission to assignmd- describe the method or set of methods this permission apply to
-
getMethodPermissionsFromDD
public HashMap<com.sun.enterprise.deployment.MethodPermission,ArrayList<com.sun.enterprise.deployment.MethodDescriptor>> getMethodPermissionsFromDD()Get a record of all the Method Permissions exactly as they were in the`DD- Specified by:
getMethodPermissionsFromDDin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
removePermissionedMethod
public void removePermissionedMethod(com.sun.enterprise.deployment.MethodPermission mp, com.sun.enterprise.deployment.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<com.sun.enterprise.deployment.MethodPermission,Set<com.sun.enterprise.deployment.MethodDescriptor>> getStyledPermissionedMethodsByPermission()- Returns:
- a map of permission to style 1 or 2 method descriptors
-
getPermitAllMethodDescriptors
- Returns:
- a Set of method descriptors for all the methods associated with an unchecked method permission
-
getDenyAllMethodPermission
- Returns:
- a Set of method descriptors for all the methoda assoicated with an excluded method permission
-
getMethodPermissionsFor
public Set<com.sun.enterprise.deployment.MethodPermission> getMethodPermissionsFor(com.sun.enterprise.deployment.MethodDescriptor methodDescriptor) - Specified by:
getMethodPermissionsForin interfacecom.sun.enterprise.deployment.EjbDescriptor- Returns:
- the set of method permission assigned to a ejb method descriptor.
-
getEjbReferenceDescriptors
Return the set of ejb references this ejb declares.- Specified by:
getEjbReferenceDescriptorsin interfacecom.sun.enterprise.deployment.types.EjbReferenceContainer- Specified by:
getEjbReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addEjbReferenceDescriptor
public final void addEjbReferenceDescriptor(com.sun.enterprise.deployment.EjbReferenceDescriptor ejbReference) Adds a reference to another ejb to me.- Specified by:
addEjbReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.EjbReferenceContainer- Specified by:
addEjbReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeEjbReferenceDescriptor
public final void removeEjbReferenceDescriptor(com.sun.enterprise.deployment.EjbReferenceDescriptor ejbReference) - Specified by:
removeEjbReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getPostConstructDescriptors
public final Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> getPostConstructDescriptors()- Specified by:
getPostConstructDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addPostConstructDescriptor
public final void addPostConstructDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor postConstructDesc) - Specified by:
addPostConstructDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getPostConstructDescriptorByClass
public final com.sun.enterprise.deployment.LifecycleCallbackDescriptor getPostConstructDescriptorByClass(String className) - Specified by:
getPostConstructDescriptorByClassin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getPreDestroyDescriptors
public final Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> getPreDestroyDescriptors()- Specified by:
getPreDestroyDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addPreDestroyDescriptor
public final void addPreDestroyDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor preDestroyDesc) - Specified by:
addPreDestroyDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getPreDestroyDescriptorByClass
public final com.sun.enterprise.deployment.LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(String className) - Specified by:
getPreDestroyDescriptorByClassin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getServiceReferenceDescriptors
public final Set<com.sun.enterprise.deployment.ServiceReferenceDescriptor> getServiceReferenceDescriptors()- Specified by:
getServiceReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getServiceReferenceDescriptorsin interfacecom.sun.enterprise.deployment.types.ServiceReferenceContainer
-
addServiceReferenceDescriptor
public final void addServiceReferenceDescriptor(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef) - Specified by:
addServiceReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.ServiceReferenceContainer- Specified by:
addServiceReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeServiceReferenceDescriptor
public final void removeServiceReferenceDescriptor(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef) - Specified by:
removeServiceReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.ServiceReferenceContainer- Specified by:
removeServiceReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getServiceReferenceByName
public final com.sun.enterprise.deployment.ServiceReferenceDescriptor getServiceReferenceByName(String name) Looks up an service reference with the given name. Throws an IllegalArgumentException if it is not found.- Specified by:
getServiceReferenceByNamein interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getServiceReferenceByNamein interfacecom.sun.enterprise.deployment.types.ServiceReferenceContainer
-
getMessageDestinationReferenceDescriptors
public final Set<com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()- Specified by:
getMessageDestinationReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getMessageDestinationReferenceDescriptorsin interfacecom.sun.enterprise.deployment.types.MessageDestinationReferenceContainer
-
addMessageDestinationReferenceDescriptor
public final void addMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor messageDestRef) - Specified by:
addMessageDestinationReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.MessageDestinationReferenceContainer- Specified by:
addMessageDestinationReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeMessageDestinationReferenceDescriptor
public final void removeMessageDestinationReferenceDescriptor(com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor msgDestRef) - Specified by:
removeMessageDestinationReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.MessageDestinationReferenceContainer- Specified by:
removeMessageDestinationReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getMessageDestinationReferenceByName
public final com.sun.enterprise.deployment.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 interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getMessageDestinationReferenceByNamein interfacecom.sun.enterprise.deployment.types.MessageDestinationReferenceContainer
-
getResourceDescriptors
public final Set<com.sun.enterprise.deployment.ResourceDescriptor> getResourceDescriptors(org.glassfish.deployment.common.JavaEEResourceType type) - Specified by:
getResourceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Overrides:
getResourceDescriptorsin classcom.sun.enterprise.deployment.CommonResourceDescriptor
-
addResourceDescriptor
public final void addResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor) - Specified by:
addResourceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment- Overrides:
addResourceDescriptorin classcom.sun.enterprise.deployment.CommonResourceDescriptor
-
removeResourceDescriptor
public final void removeResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor) - Specified by:
removeResourceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment- Overrides:
removeResourceDescriptorin classcom.sun.enterprise.deployment.CommonResourceDescriptor
-
getAllResourcesDescriptors
- Specified by:
getAllResourcesDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Overrides:
getAllResourcesDescriptorsin classcom.sun.enterprise.deployment.CommonResourceDescriptor
-
getAllResourcesDescriptors
public final Set<com.sun.enterprise.deployment.ResourceDescriptor> getAllResourcesDescriptors(Class givenClazz) - Specified by:
getAllResourcesDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Overrides:
getAllResourcesDescriptorsin classcom.sun.enterprise.deployment.CommonResourceDescriptor
-
getResourceEnvReferenceDescriptors
public final Set<com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor> getResourceEnvReferenceDescriptors()Return the set of resource environment references this ejb declares.- Specified by:
getResourceEnvReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getResourceEnvReferenceDescriptorsin interfacecom.sun.enterprise.deployment.types.ResourceEnvReferenceContainer
-
addResourceEnvReferenceDescriptor
public final void addResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference) - Specified by:
addResourceEnvReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.ResourceEnvReferenceContainer- Specified by:
addResourceEnvReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeResourceEnvReferenceDescriptor
public final void removeResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference) - Specified by:
removeResourceEnvReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getResourceEnvReferenceByName
public final com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name) - Specified by:
getResourceEnvReferenceByNamein interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getResourceEnvReferenceByNamein interfacecom.sun.enterprise.deployment.types.ResourceEnvReferenceContainer
-
getResourceReferenceDescriptors
public final Set<com.sun.enterprise.deployment.ResourceReferenceDescriptor> getResourceReferenceDescriptors()Return the set of resource references this ejb declares.- Specified by:
getResourceReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment- Specified by:
getResourceReferenceDescriptorsin interfacecom.sun.enterprise.deployment.types.ResourceReferenceContainer
-
addResourceReferenceDescriptor
public final void addResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) Adds a resource reference to me.- Specified by:
addResourceReferenceDescriptorin interfacecom.sun.enterprise.deployment.types.ResourceReferenceContainer- Specified by:
addResourceReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeResourceReferenceDescriptor
public final void removeResourceReferenceDescriptor(com.sun.enterprise.deployment.ResourceReferenceDescriptor resourceReference) Removes the given resource reference from me.- Specified by:
removeResourceReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getEnvironmentPropertyByName
public final com.sun.enterprise.deployment.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 interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getEnvironmentProperties
Return a copy of the structure holding the environment properties.- Specified by:
getEnvironmentPropertiesin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addEnvironmentProperty
public final void addEnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty environmentProperty) Add the supplied environment property to the ejb descriptor's list.- Specified by:
addEnvironmentPropertyin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
removeEnvironmentProperty
public final void removeEnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty environmentProperty) Removes the given environment property from me.- Specified by:
removeEnvironmentPropertyin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getEntityManagerFactoryReferenceDescriptors
public final Set<com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()- Specified by:
getEntityManagerFactoryReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getEntityManagerFactoryReferenceByName
public final com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(String name) Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerFactoryReferenceByNamein interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addEntityManagerFactoryReferenceDescriptor
public final void addEntityManagerFactoryReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor reference) - Specified by:
addEntityManagerFactoryReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getEntityManagerReferenceDescriptors
public final Set<com.sun.enterprise.deployment.EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()- Specified by:
getEntityManagerReferenceDescriptorsin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getEntityManagerReferenceByName
public final com.sun.enterprise.deployment.EntityManagerReferenceDescriptor getEntityManagerReferenceByName(String name) Return the entity manager factory reference descriptor corresponding to the given name.- Specified by:
getEntityManagerReferenceByNamein interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
addEntityManagerReferenceDescriptor
public final void addEntityManagerReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerReferenceDescriptor reference) - Specified by:
addEntityManagerReferenceDescriptorin interfacecom.sun.enterprise.deployment.WritableJndiNameEnvironment
-
getInjectableResourcesByClass
public final List<com.sun.enterprise.deployment.InjectionCapable> getInjectableResourcesByClass(String className) - Specified by:
getInjectableResourcesByClassin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
getInjectionInfoByClass
- Specified by:
getInjectionInfoByClassin interfacecom.sun.enterprise.deployment.JndiNameEnvironment
-
hasPostConstructMethod
public boolean hasPostConstructMethod() -
hasPreDestroyMethod
public boolean hasPreDestroyMethod() -
getResourceReferenceDescriptors
public Set<com.sun.enterprise.deployment.ResourceReferenceDescriptor> getResourceReferenceDescriptors(boolean resolved) Return the set of resource references this ejb declares that have been resolved. -
getResourceReferenceByName
public com.sun.enterprise.deployment.ResourceReferenceDescriptor getResourceReferenceByName(String name) Return the resource object corresponding to the supplied name or throw an illegal argument exception.- Specified by:
getResourceReferenceByNamein interfacecom.sun.enterprise.deployment.types.ResourceReferenceContainer
-
hasResolvedResourceReferences
public boolean hasResolvedResourceReferences()Returns true if this ejb descriptor has resource references that are resolved. -
getEjbReference
Return a reference to another ejb by the same name or throw an IllegalArgumentException.- Specified by:
getEjbReferencein interfacecom.sun.enterprise.deployment.types.EjbReferenceContainer
-
getRoleReferences
Return a copy of the role references set. -
addRoleReference
public void addRoleReference(com.sun.enterprise.deployment.RoleReference roleReference) Adds a role reference.- Specified by:
addRoleReferencein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
removeRoleReference
public void removeRoleReference(com.sun.enterprise.deployment.RoleReference roleReference) Removes a role reference. -
getRoleReferenceByName
Returns a matching role reference by name or throw an IllegalArgumentException.- Specified by:
getRoleReferenceByNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getEjbBundleDescriptor
Gets the containing ejb bundle descriptor..- Specified by:
getEjbBundleDescriptorin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setEjbBundleDescriptor
-
notifyNewModule
public void notifyNewModule(com.sun.enterprise.deployment.WebBundleDescriptor wbd) Called by WebArchivist to notify this EjbDescriptor that it has been associated with a web bundle.- Specified by:
notifyNewModulein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getApplication
public com.sun.enterprise.deployment.Application getApplication()Gets the application to which this ejb descriptor belongs.- Specified by:
getApplicationin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getMethodDescriptors
Returns the full set of method descriptors I have (from all the methods on my home and remote interfaces).- Specified by:
getMethodDescriptorsin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getTxBusinessMethodDescriptors
- Returns:
- the full set of transactional business method descriptors I have.
-
getSecurityBusinessMethodDescriptors
Returns the full set of security business method descriptors I have.- Specified by:
getSecurityBusinessMethodDescriptorsin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getClientBusinessMethodDescriptors
- Returns:
- the set of local/remote/no-interface view business method descriptors I have.
-
addAllInterfaceMethodsIn
protected void addAllInterfaceMethodsIn(Collection<com.sun.enterprise.deployment.MethodDescriptor> methodDescriptors, Class<?> c, String methodIntf) -
getBusinessMethodDescriptorFor
public com.sun.enterprise.deployment.MethodDescriptor getBusinessMethodDescriptorFor(Method m, String methodIntf) - Returns:
- the MethodDescriptor for the given Method object
-
getTransactionMethodDescriptors
- Returns:
- the collection of MethodDescriptors to which ContainerTransactions may be assigned.
-
getTransactionMethods
protected Collection<com.sun.enterprise.deployment.MethodDescriptor> getTransactionMethods(ClassLoader classLoader) - Returns:
- a collection of MethodDescriptor for methods which may have a associated transaction attribute
-
getOptionalLocalBusinessMethods
- Returns:
- the set of method objects representing no-interface view
-
getContainerFactoryQualifier
-
getMethods
- Returns:
- the set of method objects on my home and remote interfaces.
-
getMethods
- Returns:
- the ejb method objects, i.e. the methods on the home and remote interfaces.
-
getFields
- Returns:
- a Vector of the Field objetcs of this ejb.
-
getFieldDescriptors
-
removeEjbReferencer
public void removeEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref) - Specified by:
removeEjbReferencerin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
addEjbReferencer
public void addEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref) - Specified by:
addEjbReferencerin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getAllEjbReferencers
-
setUniqueId
public void setUniqueId(long id) - Specified by:
setUniqueIdin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getUniqueId
public long getUniqueId()- Specified by:
getUniqueIdin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
print
Returns a formatted String of the attributes of this object.- Overrides:
printin classorg.glassfish.deployment.common.Descriptor
-
visit
public void visit(org.glassfish.deployment.common.DescriptorVisitor aVisitor) visit the descriptor and all sub descriptors with a DOL visitor implementation- Overrides:
visitin classorg.glassfish.deployment.common.Descriptor- Parameters:
aVisitor- a visitor to traverse the descriptors
-
visit
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-