1 23 24 package com.sun.enterprise.server.ondemand; 25 26 import java.util.Properties ; 27 import com.sun.enterprise.server.pluggable.InternalServicesList; 28 29 33 public class OnDemandServices implements InternalServicesList { 34 35 public String [][] getServicesByName() { 36 int sze = getEjbServiceGroupServices().length + 37 getWebServiceGroupServices().length + 38 getResourcesServiceGroupServices().length ; 39 String [][] servicesByName = new String [sze][2]; 40 41 int idx = 0; 42 for (String [] service : getEjbServiceGroupServices()) { 43 servicesByName[idx][0] = service[0]; 44 servicesByName[idx][1] = service[1]; 45 idx++; 46 } 47 48 for (String [] service : getWebServiceGroupServices()) { 49 servicesByName[idx][0] = service[0]; 50 servicesByName[idx][1] = service[1]; 51 idx++; 52 } 53 54 for (String [] service : getResourcesServiceGroupServices()) { 55 servicesByName[idx][0] = service[0]; 56 servicesByName[idx][1] = service[1]; 57 idx++; 58 } 59 60 return servicesByName; 61 } 62 63 64 public static String [][] getEjbServiceGroupServices() { 66 String [][] servicesByName = { 67 }; 68 return servicesByName; 69 } 70 71 public static String [][] getWebServiceGroupServices () { 73 String [][] servicesByName = { 74 {"Servlet/JSP Service", 75 "com.sun.enterprise.web.PEWebContainerLifecycle"}, 76 }; 77 return servicesByName; 78 } 79 80 public static String [][] getResourcesServiceGroupServices () { 82 String [][] servicesByName = { 83 {"JMSProvider", 84 "com.sun.enterprise.jms.JmsProviderLifecycle"}, 85 }; 86 return servicesByName; 87 } 88 89 } 90 | Popular Tags |