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.EjbDescriptorThis 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 com.sun.enterprise.deployment.RunAsIdentityDescriptorrunAsIdentityprotected StringsecurityIdentityDescriptionprotected StringtransactionTypeprotected BooleanusesCallerIdentityprotected booleanusesDefaultTransaction
-
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 methodDescriptors, Class c, String methodIntf)voidaddAroundInvokeDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundInvokeDesc)voidaddAroundTimeoutDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor aroundTimeoutDesc)voidaddEjbDescriptor(EjbDescriptor other)voidaddEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)Adds a reference to another ejb to me.voidaddEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref)voidaddEntityManagerFactoryReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor reference)voidaddEntityManagerReferenceDescriptor(com.sun.enterprise.deployment.EntityManagerReferenceDescriptor reference)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)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 methodsvoidaddPostConstructDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor postConstructDesc)voidaddPreDestroyDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor preDestroyDesc)voidaddRemoteBusinessClassName(String className)voidaddResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor)voidaddResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference)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 methodvoidaddServiceReferenceDescriptor(com.sun.enterprise.deployment.ServiceReferenceDescriptor serviceRef)booleanallMechanismsRequireSSL()This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.voidappendToInterceptorChain(List<com.sun.enterprise.deployment.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.SetgetAllEjbReferencers()Set<com.sun.enterprise.deployment.ResourceDescriptor>getAllResourcesDescriptors()Set<com.sun.enterprise.deployment.ResourceDescriptor>getAllResourcesDescriptors(Class givenClazz)com.sun.enterprise.deployment.ApplicationgetApplication()Gets the application to which this ejb descriptor belongs.com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetAroundInvokeDescriptorByClass(String className)Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>getAroundInvokeDescriptors()List<com.sun.enterprise.deployment.EjbInterceptor>getAroundInvokeInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod)Return the ordered list of interceptor info for AroundInvoke behavior of a particular business method.com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetAroundTimeoutDescriptorByClass(String className)Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>getAroundTimeoutDescriptors()List<com.sun.enterprise.deployment.EjbInterceptor>getAroundTimeoutInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod)Return the ordered list of interceptor info for AroundTimeout behavior of a particular business method.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.SetgetClientBusinessMethodDescriptors()Returns the set of local/remote/no-interface view business method descriptors I have.abstract StringgetContainerFactoryQualifier()ContainerTransactiongetContainerTransaction()returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return nullContainerTransactiongetContainerTransactionFor(com.sun.enterprise.deployment.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 return getEjbClassName() and the method is redefined in IASEjbCMPDescriptor.StringgetEJBLocalObjectImplClassName()Returns the classname of the EJBLocalObject impl.StringgetEJBObjectImplClassName()Returns the classname of the EJBObject impl.com.sun.enterprise.deployment.types.EjbReferencegetEjbReference(String name)Return a reference to another ejb by the same name or throw an IllegalArgumentException.Set<com.sun.enterprise.deployment.types.EjbReference>getEjbReferenceDescriptors()Return the set of ejb references this ejb declares.com.sun.enterprise.deployment.MethodDescriptorgetEjbTimeoutMethod()abstract StringgetEjbTypeForDisplay()com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptorgetEntityManagerFactoryReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<com.sun.enterprise.deployment.EntityManagerFactoryReferenceDescriptor>getEntityManagerFactoryReferenceDescriptors()com.sun.enterprise.deployment.EntityManagerReferenceDescriptorgetEntityManagerReferenceByName(String name)Return the entity manager factory reference descriptor corresponding to the given name.Set<com.sun.enterprise.deployment.EntityManagerReferenceDescriptor>getEntityManagerReferenceDescriptors()Set<com.sun.enterprise.deployment.EnvironmentProperty>getEnvironmentProperties()Return a copy of the structure holding the environment properties.com.sun.enterprise.deployment.EnvironmentPropertygetEnvironmentPropertyByName(String name)Returns the environment property object searching on the supplied key.SetgetExcludedMethodDescriptors()VectorgetFieldDescriptors()VectorgetFields()Return a Vector of the Field objetcs of this ejb.List<com.sun.enterprise.deployment.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<com.sun.enterprise.deployment.InjectionCapable>getInjectableResourcesByClass(String className)com.sun.enterprise.deployment.InjectionInfogetInjectionInfoByClass(Class clazz)List<com.sun.enterprise.deployment.EjbInterceptor>getInterceptorChain()Set<com.sun.enterprise.deployment.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<com.sun.enterprise.deployment.EjbIORConfigurationDescriptor>getIORConfigurationDescriptors()StringgetJndiName()Set<com.sun.enterprise.deployment.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()com.sun.enterprise.deployment.MessageDestinationReferenceDescriptorgetMessageDestinationReferenceByName(String name)Looks up an message destination reference with the given name.Set<com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor>getMessageDestinationReferenceDescriptors()HashtablegetMethodContainerTransactions()Return a copy of the mapping held internally of method descriptors to container transaction objects.SetgetMethodDescriptors()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>>getMethodInterceptorsMap()SetgetMethodPermissionsFor(com.sun.enterprise.deployment.MethodDescriptor methodDescriptor)HashMapgetMethodPermissionsFromDD()Get a record of all the Method Permissions exactly as they were in the`DDVectorgetMethods()Return the set of method objects on my home and remote interfaces.VectorgetMethods(ClassLoader classLoader)Return the ejb method objects, i.e.Set<String>getNoInterfaceLocalBeanClasses()Set<Method>getOptionalLocalBusinessMethods()Return the set of method objects representing no-interface viewMapgetPermissionedMethodsByPermission()Set<org.glassfish.security.common.Role>getPermissionedRoles()VectorgetPossibleTransactionAttributes()Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode.com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPostConstructDescriptorByClass(String className)Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>getPostConstructDescriptors()com.sun.enterprise.deployment.LifecycleCallbackDescriptorgetPreDestroyDescriptorByClass(String className)Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor>getPreDestroyDescriptors()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<com.sun.enterprise.deployment.ResourceDescriptor>getResourceDescriptors(org.glassfish.deployment.common.JavaEEResourceType type)com.sun.enterprise.deployment.ResourceEnvReferenceDescriptorgetResourceEnvReferenceByName(String name)Set<com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor>getResourceEnvReferenceDescriptors()Return the set of resource environment references this ejb declares.com.sun.enterprise.deployment.ResourceReferenceDescriptorgetResourceReferenceByName(String name)Return the resource object corresponding to the supplied name or throw an illegal argument exception.Set<com.sun.enterprise.deployment.ResourceReferenceDescriptor>getResourceReferenceDescriptors()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>getRoleReferences()Return a copy of the role references set.com.sun.enterprise.deployment.RunAsIdentityDescriptorgetRunAsIdentity()List<ScheduledTimerDescriptor>getScheduledTimerDescriptors()SetgetSecurityBusinessMethodDescriptors()Returns the full set of security business method descriptors I have.StringgetSecurityIdentityDescription()Get the description field of security-identitycom.sun.enterprise.deployment.ServiceReferenceDescriptorgetServiceReferenceByName(String name)Looks up an service reference with the given name.Set<com.sun.enterprise.deployment.ServiceReferenceDescriptor>getServiceReferenceDescriptors()MapgetStyledPermissionedMethodsByPermission()CollectiongetTransactionMethodDescriptors()protected CollectiongetTransactionMethods(ClassLoader classLoader)StringgetTransactionType()The transaction type of this ejb.SetgetTxBusinessMethodDescriptors()Returns the full set of transactional business method descriptors I have.SetgetUncheckedMethodDescriptors()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()booleanisRemoteInterfacesSupported()booleanisTimedObject()booleanisUsesDefaultTransaction()voidnotifyNewModule(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.voidremoveEjbReferenceDescriptor(com.sun.enterprise.deployment.types.EjbReference ejbReference)voidremoveEjbReferencer(com.sun.enterprise.deployment.EjbReferenceDescriptor ref)voidremoveEnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty environmentProperty)Removes the given environment property from me.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 methodsvoidremoveResourceDescriptor(com.sun.enterprise.deployment.ResourceDescriptor descriptor)voidremoveResourceEnvReferenceDescriptor(com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor resourceEnvReference)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.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.voidsetEJBLocalObjectImplClassName(String name)Sets the EJBLocalObject implementation classname of the ejb.voidsetEJBObjectImplClassName(String name)Sets 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(String 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 ejbvoidsetLocalHomeImplClassName(String name)Sets the Local home implementation classname of the ejb.voidsetMappedName(String mappedName)voidsetMethodContainerTransactions(Hashtable 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(com.sun.enterprise.deployment.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(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 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
-
-
-
-
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 com.sun.enterprise.deployment.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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setHomeClassName
public void setHomeClassName(String homeClassName)
Sets the classname of the Home interface of this ejb.
-
setRemoteClassName
public void setRemoteClassName(String remoteClassName)
Sets the classname of the Remote interface of this ejb.
-
getRemoteClassName
public String getRemoteClassName()
Returns the classname of the Remote interface of this ejb.- Specified by:
getRemoteClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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 interfacecom.sun.enterprise.deployment.EjbDescriptor- 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 interfacecom.sun.enterprise.deployment.EjbDescriptor- 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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setWebServiceEndpointInterfaceName
public void setWebServiceEndpointInterfaceName(String name)
- Specified by:
setWebServiceEndpointInterfaceNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getWebServiceEndpointInterfaceName
public String getWebServiceEndpointInterfaceName()
- Specified by:
getWebServiceEndpointInterfaceNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getJndiName
public String getJndiName()
- Specified by:
getJndiNamein interfacecom.sun.enterprise.deployment.NamedDescriptor
-
setJndiName
public void setJndiName(String jndiName)
- Specified by:
setJndiNamein interfacecom.sun.enterprise.deployment.NamedDescriptor
-
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 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
public void setEjbClassName(String ejbClassName)
Sets the classname of the ejb.
-
getEjbClassName
public String getEjbClassName()
Returns the classname of the ejb.- Specified by:
getEjbClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
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 return getEjbClassName() and the method is redefined in IASEjbCMPDescriptor.- Specified by:
getEjbImplClassNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setRemoteHomeImplClassName
public void setRemoteHomeImplClassName(String name)
Sets the remote home implementation classname of the ejb.
-
getRemoteHomeImplClassName
public String getRemoteHomeImplClassName()
Returns the classname of the remote home impl.
-
setLocalHomeImplClassName
public void setLocalHomeImplClassName(String name)
Sets the Local home implementation classname of the ejb.
-
getLocalHomeImplClassName
public String getLocalHomeImplClassName()
Returns the classname of the Local home impl.
-
setEJBLocalObjectImplClassName
public void setEJBLocalObjectImplClassName(String name)
Sets the EJBLocalObject implementation classname of the ejb.
-
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.
-
getEJBObjectImplClassName
public String getEJBObjectImplClassName()
Returns the classname of the EJBObject impl.
-
getTransactionType
public String getTransactionType()
The transaction type of this ejb.- Specified by:
getTransactionTypein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setTransactionType
public abstract void setTransactionType(String transactionType)
Set the transaction type of this ejb.
-
getPossibleTransactionAttributes
public Vector getPossibleTransactionAttributes()
Returns the set of transaction attributes that can be assigned to methods of this ejb when in CMT mode. Elements are of type ContainerTransaction
-
isTimedObject
public boolean isTimedObject()
-
getEjbTimeoutMethod
public com.sun.enterprise.deployment.MethodDescriptor getEjbTimeoutMethod()
-
setEjbTimeoutMethod
public void setEjbTimeoutMethod(com.sun.enterprise.deployment.MethodDescriptor method)
-
addScheduledTimerDescriptor
public void addScheduledTimerDescriptor(ScheduledTimerDescriptor scheduleDescriptor)
-
addScheduledTimerDescriptorFromDD
public void addScheduledTimerDescriptorFromDD(ScheduledTimerDescriptor scheduleDescriptor)
Special method for overrides because more than one schedule can be specified on a single method
-
hasScheduledTimerMethodFromDD
public boolean hasScheduledTimerMethodFromDD(Method timerMethod)
-
getScheduledTimerDescriptors
public List<ScheduledTimerDescriptor> getScheduledTimerDescriptors()
-
getAroundInvokeDescriptors
public Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> 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
public Set<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> 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
public List<com.sun.enterprise.deployment.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<com.sun.enterprise.deployment.LifecycleCallbackDescriptor> getLifecycleCallbackDescriptors()
-
applyInterceptors
public void applyInterceptors(InterceptorBindingTranslator bindingTranslator)
Derive all interceptors that are applicable to this bean.
-
hasInterceptorClass
public boolean hasInterceptorClass(String interceptorClassName)
- 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
public void appendToInterceptorChain(List<com.sun.enterprise.deployment.EjbInterceptor> chain)
- Specified by:
appendToInterceptorChainin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getInterceptorClasses
public Set<com.sun.enterprise.deployment.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<com.sun.enterprise.deployment.MethodDescriptor,List<com.sun.enterprise.deployment.EjbInterceptor>> getMethodInterceptorsMap()
-
getInterceptorChain
public List<com.sun.enterprise.deployment.EjbInterceptor> getInterceptorChain()
-
getAroundInvokeInterceptors
public List<com.sun.enterprise.deployment.EjbInterceptor> getAroundInvokeInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod)
Return the ordered list of interceptor info for AroundInvoke behavior of a particular business method. This list *does* include the info on any bean class interceptor. If present, this would always be the last element in the list because of the precedence defined by the spec.
-
getAroundTimeoutInterceptors
public List<com.sun.enterprise.deployment.EjbInterceptor> getAroundTimeoutInterceptors(com.sun.enterprise.deployment.MethodDescriptor businessMethod)
Return the ordered list of interceptor info for AroundTimeout behavior of a particular business method. This list *does* include the info on any bean class interceptor. If present, this would always be the last element in the list because of the precedence defined by the spec.
-
addMethodLevelChain
public void addMethodLevelChain(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
public Boolean 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
public String getSecurityIdentityDescription()
Get the description field of security-identity
-
setSecurityIdentityDescription
public void setSecurityIdentityDescription(String s)
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 getMethodContainerTransactions()
Return 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 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
public ContainerTransaction getContainerTransaction()
returns a ContainerTransaction if all the transactional methods on the ejb descriptor have the same transaction type else return null
-
getIORConfigurationDescriptors
public 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
public Set<org.glassfish.security.common.Role> getPermissionedRoles()
- Specified by:
getPermissionedRolesin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getPermissionedMethodsByPermission
public Map 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 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 getStyledPermissionedMethodsByPermission()
- Returns:
- a map of permission to style 1 or 2 method descriptors
-
getUncheckedMethodDescriptors
public Set getUncheckedMethodDescriptors()
- Returns:
- a Set of method descriptors for all the methods associated with an unchecked method permission
-
getExcludedMethodDescriptors
public Set getExcludedMethodDescriptors()
- Returns:
- a Set of method descriptors for all the methoda assoicated with an excluded method permission
-
getMethodPermissionsFor
public Set 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
public final Set<com.sun.enterprise.deployment.types.EjbReference> 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.types.EjbReference 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.types.EjbReference 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
public final Set<com.sun.enterprise.deployment.ResourceDescriptor> 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
public final Set<com.sun.enterprise.deployment.EnvironmentProperty> 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
public final com.sun.enterprise.deployment.InjectionInfo getInjectionInfoByClass(Class clazz)
- 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
public com.sun.enterprise.deployment.types.EjbReference getEjbReference(String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException.- Specified by:
getEjbReferencein interfacecom.sun.enterprise.deployment.types.EjbReferenceContainer
-
getRoleReferences
public Set<com.sun.enterprise.deployment.RoleReference> 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
public com.sun.enterprise.deployment.RoleReference getRoleReferenceByName(String roleReferenceName)
Returns a matching role reference by name or throw an IllegalArgumentException.- Specified by:
getRoleReferenceByNamein interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getEjbBundleDescriptor
public EjbBundleDescriptorImpl getEjbBundleDescriptor()
Gets the containing ejb bundle descriptor..- Specified by:
getEjbBundleDescriptorin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
setEjbBundleDescriptor
public void setEjbBundleDescriptor(EjbBundleDescriptorImpl bundleDescriptor)
-
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
public Set 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
public Set getTxBusinessMethodDescriptors()
Returns the full set of transactional business method descriptors I have.
-
getSecurityBusinessMethodDescriptors
public Set getSecurityBusinessMethodDescriptors()
Returns the full set of security business method descriptors I have.- Specified by:
getSecurityBusinessMethodDescriptorsin interfacecom.sun.enterprise.deployment.EjbDescriptor
-
getClientBusinessMethodDescriptors
public Set getClientBusinessMethodDescriptors()
Returns the set of local/remote/no-interface view business method descriptors I have.
-
addAllInterfaceMethodsIn
protected void addAllInterfaceMethodsIn(Collection 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
public Collection getTransactionMethodDescriptors()
- Returns:
- the collection of MethodDescriptors to which ContainerTransactions may be assigned.
-
getTransactionMethods
protected Collection getTransactionMethods(ClassLoader 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
-
getContainerFactoryQualifier
public abstract String getContainerFactoryQualifier()
-
getMethods
public Vector getMethods()
Return the set of method objects on my home and remote interfaces.
-
getMethods
public Vector getMethods(ClassLoader classLoader)
Return the ejb method objects, i.e. the methods on the home and remote interfaces.
-
getFields
public Vector getFields()
Return a Vector of the Field objetcs of this ejb.
-
getFieldDescriptors
public Vector 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
public Set 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
public void print(StringBuffer toStringBuffer)
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
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 interfacecom.sun.enterprise.deployment.EjbDescriptor
-
-