FileDocCategorySizeDatePackage
ExternalJndiResource.javaAPI DocGlassfish v2 API3836Fri May 04 22:35:10 BST 2007com.sun.enterprise.repository

ExternalJndiResource

public class ExternalJndiResource extends J2EEResourceBase implements Serializable
Resource info for ExternalJndiResource. IASRI #4626188

NOT THREAD SAFE: mutable instance variables

author
Sridatta Viswanath

Fields Summary
private String
jndiLookupName_
private String
resType_
private String
factoryClass_
Constructors Summary
public ExternalJndiResource(String name)

        super(name);
    
Methods Summary
protected J2EEResourcedoClone(java.lang.String name)

        ExternalJndiResource clone = new ExternalJndiResource(name);
        clone.setJndiLookupName(getJndiLookupName());
        clone.setResType(getResType());
        clone.setFactoryClass(getFactoryClass());
        return clone;
    
public java.lang.StringgetFactoryClass()

        return factoryClass_;
    
public java.lang.StringgetJndiLookupName()

        return jndiLookupName_;
    
public java.lang.StringgetResType()

        return resType_;
    
public intgetType()

        return J2EEResource.EXTERNAL_JNDI_RESOURCE;
    
public booleanisJMSConnectionFactory()

        if (resType_ == null) return false;

        return (IASJ2EEResourceFactoryImpl.JMS_QUEUE_CONNECTION_FACTORY.equals(resType_) ||
                IASJ2EEResourceFactoryImpl.JMS_TOPIC_CONNECTION_FACTORY.equals(resType_)); 
    
public voidsetFactoryClass(java.lang.String factoryClass)

        factoryClass_ = factoryClass;
    
public voidsetJndiLookupName(java.lang.String jndiLookupName)

        jndiLookupName_ = jndiLookupName;
    
public voidsetResType(java.lang.String resType)

        resType_ = resType;
    
public java.lang.StringtoString()

        return "< External Jndi Resource : " + getName() + " , " + getJndiLookupName() + "... >";