Package com.sun.enterprise.deployment
Class MessageDestinationReferencerImpl
- java.lang.Object
-
- com.sun.enterprise.deployment.MessageDestinationReferencerImpl
-
- All Implemented Interfaces:
MessageDestinationReferencer,Serializable
public class MessageDestinationReferencerImpl extends Object implements MessageDestinationReferencer, Serializable
Shared implementation for deployment descriptor entities that can refer to a message destination. Each MessageDestinationReferencer has an owner. The owner can either be a MessageDestinationReference or a MessageDrivenBean.- Author:
- Kenneth Saks
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageDestinationReferencerImpl(MessageDestinationReferencerImpl other)MessageDestinationReferencerImpl(Descriptor desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EjbMessageBeanDescriptorgetMessageBeanOwner()Get the descriptor for the message-driven bean owner.MessageDestinationDescriptorgetMessageDestination()StringgetMessageDestinationLinkName()Gets the link name of the reference.MessageDestinationReferenceDescriptorgetMessageDestinationRefOwner()Get the descriptor for the message destination reference owner.booleanisLinkedToMessageDestination()True if this reference has been resolved to a valid MessageDestination object.booleanownedByMessageBean()True if the owner is a message-driven bean.booleanownedByMessageDestinationRef()True if the owner is a message destination reference.MessageDestinationDescriptorresolveLinkName()Try to resolve the current link name value to a MessageDestination object.voidsetMessageDestination(MessageDestinationDescriptor newMsgDest)voidsetMessageDestinationLinkName(String linkName)Sets the name of the message destination to which I refer.MessageDestinationDescriptorsetMessageDestinationLinkName(String linkName, boolean resolve)Sets the name of the message destination to which I refer.
-
-
-
Constructor Detail
-
MessageDestinationReferencerImpl
public MessageDestinationReferencerImpl(MessageDestinationReferencerImpl other)
-
MessageDestinationReferencerImpl
public MessageDestinationReferencerImpl(Descriptor desc)
-
-
Method Detail
-
ownedByMessageDestinationRef
public boolean ownedByMessageDestinationRef()
True if the owner is a message destination reference.- Specified by:
ownedByMessageDestinationRefin interfaceMessageDestinationReferencer
-
getMessageDestinationRefOwner
public MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
Get the descriptor for the message destination reference owner.- Specified by:
getMessageDestinationRefOwnerin interfaceMessageDestinationReferencer
-
ownedByMessageBean
public boolean ownedByMessageBean()
True if the owner is a message-driven bean.- Specified by:
ownedByMessageBeanin interfaceMessageDestinationReferencer
-
getMessageBeanOwner
public EjbMessageBeanDescriptor getMessageBeanOwner()
Get the descriptor for the message-driven bean owner.- Specified by:
getMessageBeanOwnerin interfaceMessageDestinationReferencer
-
isLinkedToMessageDestination
public boolean isLinkedToMessageDestination()
True if this reference has been resolved to a valid MessageDestination object.- Specified by:
isLinkedToMessageDestinationin interfaceMessageDestinationReferencer- Returns:
- true if this referencer is linked to a message destination and false otherwise.
-
getMessageDestinationLinkName
public String getMessageDestinationLinkName()
Description copied from interface:MessageDestinationReferencerGets the link name of the reference. Points to the associated message destination within the J2EE application. Can be NULL if link is not set.- Specified by:
getMessageDestinationLinkNamein interfaceMessageDestinationReferencer- Returns:
- the link name of the message destination to which I refer NOTE that this "link name" is potentially different from the actual name of the target message destination, since the message destination could be defined in a different module.
-
setMessageDestinationLinkName
public void setMessageDestinationLinkName(String linkName)
Sets the name of the message destination to which I refer. NOTE : Does *NOT* attempt to resolve link name. Use alternate version of setMessageDestinationLinkName or resolveLink if link resolution is required.- Specified by:
setMessageDestinationLinkNamein interfaceMessageDestinationReferencer
-
setMessageDestinationLinkName
public MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolve)
Sets the name of the message destination to which I refer.- Specified by:
setMessageDestinationLinkNamein interfaceMessageDestinationReferencer- Parameters:
resolve- if true, *try* to resolve link to the target message destination.- Returns:
- MessageDestination to which link was resolved, or null if link name resolution failed.
-
resolveLinkName
public MessageDestinationDescriptor resolveLinkName()
Try to resolve the current link name value to a MessageDestination object.- Specified by:
resolveLinkNamein interfaceMessageDestinationReferencer- Returns:
- MessageDestination to which link was resolved, or null if link name resolution failed.
-
getMessageDestination
public MessageDestinationDescriptor getMessageDestination()
- Specified by:
getMessageDestinationin interfaceMessageDestinationReferencer- Returns:
- the message destination to which I refer. Can be NULL.
-
setMessageDestination
public void setMessageDestination(MessageDestinationDescriptor newMsgDest)
- Specified by:
setMessageDestinationin interfaceMessageDestinationReferencer- Parameters:
messageDestiation- the message destination to which I refer.
-
-