public class MessageDestinationReferenceDescriptor extends EnvironmentProperty implements MessageDestinationReference
Modifier and Type | Field and Description |
---|---|
static String |
CONSUMES |
static String |
CONSUMES_PRODUCES |
static String |
PRODUCES |
lookupName, mappedName
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
CONSUMES_AND_PRODUCES
Constructor and Description |
---|
MessageDestinationReferenceDescriptor()
Constructs a reference in the extrernal state.
|
MessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor other)
copy constructor
|
MessageDestinationReferenceDescriptor(String name,
String desc)
Construct an message destination reference
with the given name and descriptor of the reference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Returns true if the argument is an environment property of the same name, false else.
|
String |
getDestinationType() |
String |
getInjectResourceType()
This is the class name of the type of resource that is to be injected.
|
String |
getJndiName() |
EjbMessageBeanDescriptor |
getMessageBeanOwner()
Get the descriptor for the message-driven bean owner.
|
MessageDestinationDescriptor |
getMessageDestination() |
String |
getMessageDestinationLinkName()
Gets the link name of the reference.
|
MessageDestinationReferenceDescriptor |
getMessageDestinationRefOwner()
Get the descriptor for the message destination reference owner.
|
BundleDescriptor |
getReferringBundleDescriptor()
Get the referring bundle, i.e.
|
String |
getUsage() |
int |
hashCode()
The hashCode of an environment property is the same as that of the name String.
|
boolean |
isConflict(MessageDestinationReferenceDescriptor other) |
boolean |
isLinkedToMessageDestination() |
boolean |
ownedByMessageBean()
True if the owner is a message-driven bean.
|
boolean |
ownedByMessageDestinationRef()
True if the owner is a message destination reference.
|
void |
print(StringBuffer toStringBuffer)
returns a formatted string representing me.
|
MessageDestinationDescriptor |
resolveLinkName()
Try to resolve the current link name value to a MessageDestination
object.
|
void |
setDestinationType(String type) |
void |
setInjectResourceType(String resourceType) |
void |
setJndiName(String physicalDestinationName) |
void |
setMessageDestination(MessageDestinationDescriptor newMsgDest) |
void |
setMessageDestinationLinkName(String linkName)
Sets the name of the message destination to which I refer.
|
MessageDestinationDescriptor |
setMessageDestinationLinkName(String linkName,
boolean resolveLink)
Sets the name of the message destination to which I refer.
|
void |
setReferringBundleDescriptor(BundleDescriptor referringBundle)
Set the referring bundle, i.e.
|
void |
setUsage(String destUsage) |
addInjectionTarget, getComponentEnvName, getInjectionTargets, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getType, getValue, getValueObject, getValueType, hasAValue, hasInjectionTargetFromXml, hasLookupName, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, printInjectableResourceInfo, setLookupName, setMappedName, setType, setValue
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
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getType, setType
getDescription, getName, setDescription, setName
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
getDescription, getName, setDescription, setName
public static final String CONSUMES
public static final String PRODUCES
public static final String CONSUMES_PRODUCES
public MessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor other)
public MessageDestinationReferenceDescriptor(String name, String desc)
name
- the message-destination-ref name as used in
the referencing componentoptional
- descriptionpublic MessageDestinationReferenceDescriptor()
public String getUsage()
getUsage
in interface MessageDestinationReference
public void setUsage(String destUsage)
setUsage
in interface MessageDestinationReference
usage
- the usage type of the message destination reference
(Consumes, Produces, ConsumesProduces)public String getDestinationType()
public void setDestinationType(String type)
public String getJndiName()
public void setJndiName(String physicalDestinationName)
public String getInjectResourceType()
InjectionCapable
getInjectResourceType
in interface InjectionCapable
getInjectResourceType
in class EnvironmentProperty
public void setInjectResourceType(String resourceType)
setInjectResourceType
in interface InjectionCapable
setInjectResourceType
in class EnvironmentProperty
public void setReferringBundleDescriptor(BundleDescriptor referringBundle)
setReferringBundleDescriptor
in interface MessageDestinationReference
public BundleDescriptor getReferringBundleDescriptor()
getReferringBundleDescriptor
in interface MessageDestinationReference
public boolean isLinkedToMessageDestination()
isLinkedToMessageDestination
in interface MessageDestinationReferencer
public String getMessageDestinationLinkName()
MessageDestinationReferencer
getMessageDestinationLinkName
in interface MessageDestinationReferencer
public void setMessageDestinationLinkName(String linkName)
setMessageDestinationLinkName
in interface MessageDestinationReferencer
public MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolveLink)
MessageDestinationReferencer
setMessageDestinationLinkName
in interface MessageDestinationReferencer
resolveLink
- if true, *try* to resolve link to the target message
destination.public MessageDestinationDescriptor resolveLinkName()
MessageDestinationReferencer
resolveLinkName
in interface MessageDestinationReferencer
public boolean ownedByMessageDestinationRef()
MessageDestinationReferencer
ownedByMessageDestinationRef
in interface MessageDestinationReferencer
public MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
getMessageDestinationRefOwner
in interface MessageDestinationReferencer
public boolean ownedByMessageBean()
ownedByMessageBean
in interface MessageDestinationReferencer
public EjbMessageBeanDescriptor getMessageBeanOwner()
getMessageBeanOwner
in interface MessageDestinationReferencer
public MessageDestinationDescriptor getMessageDestination()
getMessageDestination
in interface MessageDestinationReferencer
public void setMessageDestination(MessageDestinationDescriptor newMsgDest)
setMessageDestination
in interface MessageDestinationReferencer
messageDestiation
- the message destination to which I refer.public void print(StringBuffer toStringBuffer)
print
in class EnvironmentProperty
public boolean isConflict(MessageDestinationReferenceDescriptor other)
public boolean equals(Object object)
EnvironmentProperty
equals
in class EnvironmentProperty
public int hashCode()
EnvironmentProperty
hashCode
in class EnvironmentProperty
Copyright © 2018. All rights reserved.