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

EJBModuleMdl

public class EJBModuleMdl extends J2EEModuleMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
private String
ejbModuleName
private String
applicationName
private boolean
hasWebServices
private String[]
endpointAddresses
Constructors Summary
public EJBModuleMdl(com.sun.enterprise.management.util.J2EEModuleCallBack module, com.sun.enterprise.deployment.EjbBundleDescriptor ejbBundle)

    
    
         
	super(module);
	this.ejbModuleName = module.getName() ;
	this.applicationName = module.getParentName();
	if(isStandAloneModule(applicationName))
	    this.applicationName = "null";
	WebServicesDescriptor wsDesc = ejbBundle.getWebServices();
	if (wsDesc.hasWebServices()) {
	    hasWebServices = true;
	    Vector endpointList = new Vector();
	    for (Iterator endpoints = wsDesc.getEndpoints().iterator();
		    endpoints.hasNext();) {
		WebServiceEndpoint wse = (WebServiceEndpoint) endpoints.next();
		endpointList.add(wse.getEndpointAddressUri());
	    }
	    endpointAddresses = new String[endpointList.size()];
	    endpointList.copyInto(endpointAddresses);
	}	    	
    
Methods Summary
public java.lang.StringgetJ2EEApplication()
Accessor method for the parent key

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

        return this.ejbModuleName;
    
public java.lang.String[]getejbs()

        Set appMods = findNames("EJBModule=" + this.ejbModuleName+",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;
    
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;