Interface MessageDestinationReferencer
-
- All Known Subinterfaces:
EjbMessageBeanDescriptor,MessageDestinationReference
- All Known Implementing Classes:
EjbMessageBeanDescriptor,MessageDestinationReferenceDescriptor,MessageDestinationReferencerImpl
public interface MessageDestinationReferencer- Author:
- Kenneth Saks
-
-
Method Summary
All Methods Instance Methods Abstract 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()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 destination)voidsetMessageDestinationLinkName(String linkName)Sets the link name of the reference.MessageDestinationDescriptorsetMessageDestinationLinkName(String linkName, boolean resolve)Sets the name of the message destination to which I refer.
-
-
-
Method Detail
-
isLinkedToMessageDestination
boolean isLinkedToMessageDestination()
- Returns:
- true if this referencer is linked to a message destination and false otherwise.
-
getMessageDestinationLinkName
String getMessageDestinationLinkName()
Gets the link name of the reference. Points to the associated message destination within the J2EE application. Can be NULL if link is not set.- Returns:
- the link name.
-
setMessageDestinationLinkName
void setMessageDestinationLinkName(String linkName)
Sets the link name of the reference. Points to the associated message destination within the J2EE application. Can be NULL if link is not set.- Parameters:
the- link name.
-
setMessageDestinationLinkName
MessageDestinationDescriptor setMessageDestinationLinkName(String linkName, boolean resolve)
Sets the name of the message destination to which I refer.- 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
MessageDestinationDescriptor resolveLinkName()
Try to resolve the current link name value to a MessageDestination object.- Returns:
- MessageDestination to which link was resolved, or null if link name resolution failed.
-
getMessageDestination
MessageDestinationDescriptor getMessageDestination()
- Returns:
- the message destination object to which this message destination ref is linked. Can be NULL.
-
setMessageDestination
void setMessageDestination(MessageDestinationDescriptor destination)
- Parameters:
destination- set the message destination object to which this message destination ref is linked. Can be NULL.
-
ownedByMessageDestinationRef
boolean ownedByMessageDestinationRef()
True if the owner is a message destination reference.
-
getMessageDestinationRefOwner
MessageDestinationReferenceDescriptor getMessageDestinationRefOwner()
Get the descriptor for the message destination reference owner.
-
ownedByMessageBean
boolean ownedByMessageBean()
True if the owner is a message-driven bean.
-
getMessageBeanOwner
EjbMessageBeanDescriptor getMessageBeanOwner()
Get the descriptor for the message-driven bean owner.
-
-