com.sun.enterprise.deployment
Class JmsDestinationReferenceDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.EnvironmentProperty
                  extended by com.sun.enterprise.deployment.JmsDestinationReferenceDescriptor
All Implemented Interfaces:
InjectionCapable, JmsDestinationReference, NamedDescriptor, ApplicationParameter, ContextParameter, EnvironmentEntry, InitializationParameter, NameValuePair, WebDescriptor, java.io.Serializable

public class JmsDestinationReferenceDescriptor
extends EnvironmentProperty
implements NamedDescriptor, JmsDestinationReference

I am an object representing a dependency on a JMS Destination (Queue/Topic)

Author:
Kenneth Saks
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.EnvironmentProperty
lookupName, mappedName
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
JmsDestinationReferenceDescriptor()
           
JmsDestinationReferenceDescriptor(java.lang.String name, java.lang.String description, java.lang.String refType)
           
 
Method Summary
 void checkType()
          Performs the same check as in ResourceReferenceDescriptor
 boolean equals(java.lang.Object object)
          Returns true if the argument is an environment property of the same name, false else.
 java.lang.String getInjectResourceType()
          This is the class name of the type of resource that is to be injected.
 java.lang.String getJndiName()
          Return the jndi name of the destination to which I refer.
 ManagedBeanDescriptor getManagedBeanDescriptor()
           
 java.lang.String getRefType()
           
 boolean isCDIBeanManager()
           
 boolean isEJBContext()
           
 boolean isManagedBean()
           
 boolean isValidator()
           
 boolean isValidatorFactory()
           
 void setInjectResourceType(java.lang.String refType)
           
 void setIsManagedBean(boolean flag)
           
 void setJndiName(java.lang.String jndiName)
          Sets the jndi name of the destination to which I refer
 void setManagedBeanDescriptor(ManagedBeanDescriptor desc)
           
 void setRefType(java.lang.String refType)
           
 
Methods inherited from class com.sun.enterprise.deployment.EnvironmentProperty
addInjectionTarget, getComponentEnvName, getInjectionTargets, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hashCode, hasInjectionTargetFromXml, hasLookupName, isConflictResourceGroup, isInjectable, isSetValueCalled, print, printInjectableResourceInfo, setLookupName, setMappedName, setType, setValue
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, 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 com.sun.enterprise.deployment.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.JmsDestinationReference
getName, getType, setName, setType
 
Methods inherited from interface com.sun.enterprise.deployment.web.NameValuePair
getDescription, getValue, setDescription, setValue
 
Methods inherited from interface com.sun.enterprise.deployment.web.WebDescriptor
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
 

Constructor Detail

JmsDestinationReferenceDescriptor

public JmsDestinationReferenceDescriptor()

JmsDestinationReferenceDescriptor

public JmsDestinationReferenceDescriptor(java.lang.String name,
                                         java.lang.String description,
                                         java.lang.String refType)
Method Detail

setRefType

public void setRefType(java.lang.String refType)

getRefType

public java.lang.String getRefType()

getInjectResourceType

public java.lang.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 interface InjectionCapable
Overrides:
getInjectResourceType in class EnvironmentProperty

setInjectResourceType

public void setInjectResourceType(java.lang.String refType)
Specified by:
setInjectResourceType in interface InjectionCapable
Overrides:
setInjectResourceType in class EnvironmentProperty

setIsManagedBean

public void setIsManagedBean(boolean flag)

isManagedBean

public boolean isManagedBean()

setManagedBeanDescriptor

public void setManagedBeanDescriptor(ManagedBeanDescriptor desc)

getManagedBeanDescriptor

public ManagedBeanDescriptor getManagedBeanDescriptor()

getJndiName

public java.lang.String getJndiName()
Return the jndi name of the destination to which I refer.

Specified by:
getJndiName in interface NamedDescriptor
Returns:
java.lang.String JNDI name

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the jndi name of the destination to which I refer

Specified by:
setJndiName in interface NamedDescriptor
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()

equals

public boolean equals(java.lang.Object object)
Description copied from class: EnvironmentProperty
Returns true if the argument is an environment property of the same name, false else.

Overrides:
equals in class EnvironmentProperty

checkType

public void checkType()
Performs the same check as in ResourceReferenceDescriptor



Copyright © 2012 GlassFish Community. All Rights Reserved.