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

ResourceAdapterModuleMdl

public class ResourceAdapterModuleMdl extends J2EEModuleMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
private String
resAdapterModuleName
private String
resAdapterName
private String
applicationName
Constructors Summary
public ResourceAdapterModuleMdl(com.sun.enterprise.management.util.J2EEModuleCallBack module, String rarName)


         
        super(module);
        this.resAdapterName = module.getName();
        this.resAdapterModuleName = rarName;
        if(module.getParentName() != null){
            this.applicationName = module.getParentName();
            if(isStandAloneModule(applicationName))
                this.applicationName = "null";
        }
        else {
            //standalone
            this.applicationName = "null";
        }
    
Methods Summary
public java.lang.StringgetJ2EEApplication()
Accessor method for the parent key

        return this.applicationName;
    
public java.lang.StringgetModuleName()

        return this.resAdapterModuleName;
    
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.String[]getresourceAdapters()

        Set appMods = super.findNames("j2eeType=ResourceAdapter,ResourceAdapterModule=" + this.resAdapterModuleName +",J2EEServer=" + getJ2EEServer()+",J2EEApplication="+this.applicationName);
        
        Iterator it = appMods.iterator();
        String [] mods = new String[appMods.size()];
        int i =0;
        while(it.hasNext()) {
            mods[i++] = ((ObjectName)it.next()).toString();
        }
        return mods;