1 23 24 package com.sun.enterprise.deployment.io; 25 26 import javax.enterprise.deploy.shared.ModuleType ; 27 28 36 37 public class DescriptorList { 38 39 public final static String [] earList = { 40 DescriptorConstants.APPLICATION_DD_ENTRY, 41 DescriptorConstants.S1AS_APPLICATION_DD_ENTRY 42 }; 43 44 public final static String [] ejbList = { 45 DescriptorConstants.EJB_DD_ENTRY, 46 DescriptorConstants.S1AS_EJB_DD_ENTRY, 47 DescriptorConstants.S1AS_CMP_MAPPING_DD_ENTRY, 48 DescriptorConstants.EJB_WEBSERVICES_JAR_ENTRY 49 }; 50 51 public final static String [] warList = { 52 DescriptorConstants.WEB_DD_ENTRY, 53 DescriptorConstants.S1AS_WEB_DD_ENTRY, 54 DescriptorConstants.WEB_WEBSERVICES_JAR_ENTRY, 55 DescriptorConstants.JAXRPC_JAR_ENTRY 56 }; 57 58 public final static String [] rarList = { 59 DescriptorConstants.RAR_DD_ENTRY, 60 DescriptorConstants.S1AS_RAR_DD_ENTRY 61 }; 62 63 public final static String [] carList = { 64 DescriptorConstants.APP_CLIENT_DD_ENTRY, 65 DescriptorConstants.S1AS_APP_CLIENT_DD_ENTRY 66 }; 67 68 public final static String [] getDescriptorsList (ModuleType moduleType) { 69 if (moduleType == null) return null; 70 if (moduleType == ModuleType.EAR) { 71 return earList; 72 } else if (moduleType == ModuleType.EJB) { 73 return ejbList; 74 } else if (moduleType == ModuleType.WAR) { 75 return warList; 76 } else if (moduleType == ModuleType.RAR) { 77 return rarList; 78 } else if (moduleType == ModuleType.CAR) { 79 return carList; 80 } 81 return null; 82 } 83 } 84 | Popular Tags |