FileDocCategorySizeDatePackage
OnDemandServices.javaAPI DocGlassfish v2 API3937Fri May 04 22:35:48 BST 2007com.sun.enterprise.server.ondemand

OnDemandServices

public class OnDemandServices extends Object implements com.sun.enterprise.server.pluggable.InternalServicesList
pluggable interface (this class will provide ApplicationServer with the right lifecycles array)

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.String[][]getEjbServiceGroupServices()

	String[][] servicesByName = {
	};
	return servicesByName;
   
public static java.lang.String[][]getResourcesServiceGroupServices()

	String[][] servicesByName = {
		{"JMSProvider", 
        	"com.sun.enterprise.jms.JmsProviderLifecycle"},
	};
	return servicesByName;
   
public java.lang.String[][]getServicesByName()

        int sze = getEjbServiceGroupServices().length +
                  getWebServiceGroupServices().length +
                  getResourcesServiceGroupServices().length ;
        String[][] servicesByName = new String[sze][2];

        int idx = 0;
        for (String[] service : getEjbServiceGroupServices()) {
             servicesByName[idx][0] = service[0];
             servicesByName[idx][1] = service[1];
             idx++; 
        }

        /**
        for (String[] service : getWebServiceGroupServices()) {
             servicesByName[idx][0] = service[0];
             servicesByName[idx][1] = service[1];
             idx++; 
        }
        **/

        for (String[] service : getResourcesServiceGroupServices()) {
             servicesByName[idx][0] = service[0];
             servicesByName[idx][1] = service[1];
             idx++; 
        }

	return servicesByName;
   
public static java.lang.String[][]getWebServiceGroupServices()

	String[][] servicesByName = {
                {"Servlet/JSP Service",
                "com.sun.enterprise.web.PEWebContainerLifecycle"},
	};
	return servicesByName;