FileDocCategorySizeDatePackage
ResourceAdapterMdl.javaAPI DocGlassfish v2 API5016Fri May 04 22:24:16 BST 2007com.sun.enterprise.management.model

ResourceAdapterMdl

public class ResourceAdapterMdl extends J2EEManagedObjectMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
private String
raModuleName
private String
applicationName
private String
resourceAdapterName
Constructors Summary
public ResourceAdapterMdl(String name, String rarName, String appName)

    
           
        super(name, false, false, false);
        raModuleName = rarName;
        if(appName != null){
            this.applicationName = appName;
            if(J2EEModuleMdl.isStandAloneModule(applicationName))
                this.applicationName = "null";
        }
        else {
            //standalone
            this.applicationName = "null";
        }
        resourceAdapterName = name;
    
public ResourceAdapterMdl(String name, String rarName, String appName, String serverName)

        super(name, serverName, false, false, false);
        raModuleName = rarName;
        if(appName != null){
            this.applicationName = appName;
            if(J2EEModuleMdl.isStandAloneModule(applicationName))
                this.applicationName = "null";
        }
        else {
            //standalone
            this.applicationName = "null";
        }
        resourceAdapterName = name;
    
Methods Summary
public java.lang.StringgetJ2EEApplication()
Accessor method for the parent key

       return this.applicationName;
    
public java.lang.StringgetResourceAdapterModule()
Accessor method for the parent key

        return raModuleName;
    
public java.lang.Stringgetj2eeType()
The type of the J2EEManagedObject as specified by JSR77. The class that implements a specific type must override this method and return the appropriate type string.

        return MANAGED_OBJECT_TYPE;
    
public java.lang.StringgetjcaResource()
returns the OBJECT_NAME of the JCAResource implemented by this resource adapter

        Set s = findNames("j2eeType=JCAResource,ResourceAdapter="+this.resourceAdapterName+",J2EEServer="+this.getJ2EEServer());
        Object [] objs = s.toArray();
        if (objs.length > 0) {
        	String name = ((ObjectName)objs[0]).toString();
        	return name;
        } else {
            return null;
        }