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

JmsDestinationReferenceDescriptor

public class JmsDestinationReferenceDescriptor extends EnvironmentProperty implements com.sun.enterprise.deployment.JmsDestinationReference, NamedDescriptor
I am an object representing a dependency on a JMS Destination (Queue/Topic)
author
Kenneth Saks

Fields Summary
private String
refType
private static final String
SESSION_CTX_TYPE
private static final String
MDB_CTX_TYPE
private static final String
EJB_CTX_TYPE
private static final String
EJB_TIMER_SERVICE_TYPE
Constructors Summary
public JmsDestinationReferenceDescriptor()


      
    
public JmsDestinationReferenceDescriptor(String name, String description, String refType)

        super(name, "", description);
        this.refType = refType;
    
Methods Summary
public booleanequals(java.lang.Object object)

        if (object instanceof JmsDestinationReference) {
            JmsDestinationReference destReference = (JmsDestinationReference) object;
            return destReference.getName().equals(this.getName());
        }
        return false;
    
public java.lang.StringgetInjectResourceType()

        return getRefType();
    
public java.lang.StringgetJndiName()
Return the jndi name of the destination to which I refer.

        String jndiName = this.getValue();
        return (jndiName != null  && ! jndiName.equals("")) ? 
            jndiName : getMappedName();
    
public java.lang.StringgetRefType()

        return this.refType;
    
public booleanisEJBContext()

        return (getRefType().equals(SESSION_CTX_TYPE) ||
                getRefType().equals(MDB_CTX_TYPE) ||
                getRefType().equals(EJB_CTX_TYPE) ||
                getRefType().equals(EJB_TIMER_SERVICE_TYPE));
    
public voidsetInjectResourceType(java.lang.String refType)

        setRefType(refType);
    
public voidsetJndiName(java.lang.String jndiName)
Sets the jndi name of the destination to which I refer

        this.setValue(jndiName);
    
public voidsetRefType(java.lang.String refType)

        this.refType = refType;
        this.changed();