Package com.sun.enterprise.deployment
Class ResourceEnvReferenceDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.EnvironmentProperty
-
- com.sun.enterprise.deployment.ResourceEnvReferenceDescriptor
-
- All Implemented Interfaces:
InjectionCapable
,NamedDescriptor
,ResourceEnvReference
,ApplicationParam
,ContextParameter
,EnvironmentEntry
,InitializationParameter
,NameValuePair
,WebDescriptor
,Serializable
public class ResourceEnvReferenceDescriptor extends EnvironmentProperty implements NamedDescriptor, ResourceEnvReference
I am an object representing a dependency on a resource environmentUnlike
EnvironmentProperty
this class is not limited to primitive types or their boxed variants- Author:
- Kenneth Saks
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.EnvironmentProperty
lookupName, mappedName
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description ResourceEnvReferenceDescriptor()
ResourceEnvReferenceDescriptor(String name, String description, String refType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkType()
Performs the same check as in ResourceReferenceDescriptorboolean
equals(Object object)
Equality on name.String
getInjectResourceType()
This is the class name of the type of resource that is to be injected.String
getJndiName()
Return the jndi name of the destination to which I refer.ManagedBeanDescriptor
getManagedBeanDescriptor()
String
getRefType()
Gets the type of environment reference i.e.int
hashCode()
The hashCode of an environment property is the same as that of the name String.boolean
isCDIBeanManager()
boolean
isConflict(ResourceReferenceDescriptor other)
boolean
isEJBContext()
boolean
isManagedBean()
boolean
isValidator()
boolean
isValidatorFactory()
void
setInjectResourceType(String refType)
void
setIsManagedBean(boolean flag)
void
setJndiName(String jndiName)
Sets the jndi name of the destination to which I refervoid
setManagedBeanDescriptor(ManagedBeanDescriptor desc)
void
setRefType(String refType)
-
Methods inherited from class com.sun.enterprise.deployment.EnvironmentProperty
addInjectionTarget, getComponentEnvName, getInjectionTargets, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hasInjectionTargetFromXml, hasLookupName, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, print, printInjectableResourceInfo, setLookupName, setMappedName, setType, setValue
-
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, visit
-
Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.NamedDescriptor
getName
-
Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair
getDescription, getValue, setDescription, setValue
-
Methods inherited from interface com.sun.enterprise.deployment.ResourceEnvReference
getName, getType, setName, setType
-
Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
-
-
-
-
Method Detail
-
setRefType
public void setRefType(String refType)
-
getRefType
public String getRefType()
Gets the type of environment reference i.e. jakarta.ejb.SessionContext- Returns:
-
getInjectResourceType
public String getInjectResourceType()
Description copied from interface:InjectionCapable
This is the class name of the type of resource that is to be injected.- Specified by:
getInjectResourceType
in interfaceInjectionCapable
- Overrides:
getInjectResourceType
in classEnvironmentProperty
-
setInjectResourceType
public void setInjectResourceType(String refType)
- Specified by:
setInjectResourceType
in interfaceInjectionCapable
- Overrides:
setInjectResourceType
in classEnvironmentProperty
-
setIsManagedBean
public void setIsManagedBean(boolean flag)
-
isManagedBean
public boolean isManagedBean()
-
setManagedBeanDescriptor
public void setManagedBeanDescriptor(ManagedBeanDescriptor desc)
-
getManagedBeanDescriptor
public ManagedBeanDescriptor getManagedBeanDescriptor()
-
getJndiName
public String getJndiName()
Return the jndi name of the destination to which I refer.- Specified by:
getJndiName
in interfaceNamedDescriptor
- Returns:
- java.lang.String JNDI name
-
setJndiName
public void setJndiName(String jndiName)
Sets the jndi name of the destination to which I refer- Specified by:
setJndiName
in interfaceNamedDescriptor
- Parameters:
jndiName
- the new JNDI name of the receiver.
-
isEJBContext
public boolean isEJBContext()
-
isValidator
public boolean isValidator()
-
isValidatorFactory
public boolean isValidatorFactory()
-
isCDIBeanManager
public boolean isCDIBeanManager()
-
isConflict
public boolean isConflict(ResourceReferenceDescriptor other)
-
equals
public boolean equals(Object object)
Equality on name.- Overrides:
equals
in classEnvironmentProperty
-
hashCode
public int hashCode()
Description copied from class:EnvironmentProperty
The hashCode of an environment property is the same as that of the name String.- Overrides:
hashCode
in classEnvironmentProperty
-
checkType
public void checkType()
Performs the same check as in ResourceReferenceDescriptor
-
-