FileDocCategorySizeDatePackage
MessageDestinationDescriptor.javaAPI DocGlassfish v2 API4557Fri May 04 22:31:22 BST 2007com.sun.enterprise.deployment

MessageDestinationDescriptor

public class MessageDestinationDescriptor extends Descriptor implements NamedDescriptor
This class represents information about a web service endpoint.
author
Kenneth Saks

Fields Summary
private String
msgDestName
private String
jndiName
private String
mappedName
private Set
referencers
private BundleDescriptor
bundleDescriptor
Constructors Summary
public MessageDestinationDescriptor()


      
    
public MessageDestinationDescriptor(String name, String description)

        super("", description);
        msgDestName = name;
    
Methods Summary
public voidaddReferencer(com.sun.enterprise.deployment.types.MessageDestinationReferencer referencer)

        referencers.add(referencer);
    
public java.util.SetgetAllReferencers()

        return referencers;
    
public BundleDescriptorgetBundleDescriptor()

        return bundleDescriptor;
    
public java.lang.StringgetDisplayName()

        return getLocalizedDisplayName(null);
    
public java.lang.StringgetJndiName()

        return (jndiName != null) ? jndiName : mappedName;
    
public java.lang.StringgetMappedName()

        return mappedName;
    
public voidgetMappedName(java.lang.String mappedName)

        this.mappedName = mappedName;
    
public java.lang.StringgetName()

        return msgDestName;
    
public booleanhasName()

        return (msgDestName != null);
    
public voidremoveReferencer(com.sun.enterprise.deployment.types.MessageDestinationReferencer referencer)

        referencers.remove(referencer);
    
public voidsetBundleDescriptor(BundleDescriptor bundleDesc)

        if( bundleDesc == null ) {
            for(Iterator iter = referencers.iterator(); iter.hasNext();) {
                MessageDestinationReferencer next =
                    (MessageDestinationReferencer) iter.next();
                next.setMessageDestination(null);
            }
            referencers.clear();
        }
        bundleDescriptor = bundleDesc;
    
public voidsetDisplayName(java.lang.String displayName)

        setLocalizedDisplayName(null, displayName);
    
public voidsetJndiName(java.lang.String physicalDestinationName)

        jndiName = physicalDestinationName;
    
public voidsetName(java.lang.String name)

        msgDestName = name;