FileDocCategorySizeDatePackage
MessageDestinationReferencer.javaAPI DocGlassfish v2 API4740Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.types

MessageDestinationReferencer

public interface MessageDestinationReferencer
author
Kenneth Saks

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.deployment.EjbMessageBeanDescriptorgetMessageBeanOwner()
Get the descriptor for the message-driven bean owner.

public com.sun.enterprise.deployment.MessageDestinationDescriptorgetMessageDestination()

return
the message destination object to which this message destination ref is linked. Can be NULL.

public java.lang.StringgetMessageDestinationLinkName()
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.

return
the link name.

public com.sun.enterprise.deployment.MessageDestinationReferenceDescriptorgetMessageDestinationRefOwner()
Get the descriptor for the message destination reference owner.

public booleanisLinkedToMessageDestination()

return
true if this referencer is linked to a message destination and false otherwise.

public booleanownedByMessageBean()
True if the owner is a message-driven bean.

public booleanownedByMessageDestinationRef()
True if the owner is a message destination reference.

public com.sun.enterprise.deployment.MessageDestinationDescriptorresolveLinkName()
Try to resolve the current link name value to a MessageDestination object.

return
MessageDestination to which link was resolved, or null if link name resolution failed.

public voidsetMessageDestination(com.sun.enterprise.deployment.MessageDestinationDescriptor destination)

param
destination set the message destination object to which this message destination ref is linked. Can be NULL.

public voidsetMessageDestinationLinkName(java.lang.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.

param
the link name.

public com.sun.enterprise.deployment.MessageDestinationDescriptorsetMessageDestinationLinkName(java.lang.String linkName, boolean resolve)
Sets the name of the message destination to which I refer.

param
resolve if true, *try* to resolve link to the target message destination.
return
MessageDestination to which link was resolved, or null if link name resolution failed.