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
EnvironmentPropertythis 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 voidcheckType()Performs the same check as in ResourceReferenceDescriptorbooleanequals(Object object)Equality on name.StringgetInjectResourceType()This is the class name of the type of resource that is to be injected.StringgetJndiName()Return the jndi name of the destination to which I refer.ManagedBeanDescriptorgetManagedBeanDescriptor()StringgetRefType()Gets the type of environment reference i.e.inthashCode()The hashCode of an environment property is the same as that of the name String.booleanisCDIBeanManager()booleanisConflict(ResourceReferenceDescriptor other)booleanisEJBContext()booleanisManagedBean()booleanisValidator()booleanisValidatorFactory()voidsetInjectResourceType(String refType)voidsetIsManagedBean(boolean flag)voidsetJndiName(String jndiName)Sets the jndi name of the destination to which I refervoidsetManagedBeanDescriptor(ManagedBeanDescriptor desc)voidsetRefType(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:InjectionCapableThis is the class name of the type of resource that is to be injected.- Specified by:
getInjectResourceTypein interfaceInjectionCapable- Overrides:
getInjectResourceTypein classEnvironmentProperty
-
setInjectResourceType
public void setInjectResourceType(String refType)
- Specified by:
setInjectResourceTypein interfaceInjectionCapable- Overrides:
setInjectResourceTypein 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:
getJndiNamein 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:
setJndiNamein 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:
equalsin classEnvironmentProperty
-
hashCode
public int hashCode()
Description copied from class:EnvironmentPropertyThe hashCode of an environment property is the same as that of the name String.- Overrides:
hashCodein classEnvironmentProperty
-
checkType
public void checkType()
Performs the same check as in ResourceReferenceDescriptor
-
-