1 45 46 package org.openejb.loader; 47 48 51 public class ClassPathFactory { 52 public static ClassPath createClassPath(String name){ 53 if (name.equalsIgnoreCase("tomcat")) { 54 return new TomcatClassPath(); 55 } else if (name.equalsIgnoreCase("tomcat-common")) { 56 return new TomcatClassPath(); 57 } else if (name.equalsIgnoreCase("tomcat-webapp")) { 58 return new WebAppClassPath(); 59 } else if (name.equalsIgnoreCase("bootstrap")) { 60 return new SystemClassPath(); 61 } else if (name.equalsIgnoreCase("system")) { 62 return new SystemClassPath(); 63 } else if (name.equalsIgnoreCase("thread")) { 64 return new ContextClassPath(); 65 } else if (name.equalsIgnoreCase("context")) { 66 return new ContextClassPath(); 67 } else { 68 return new ContextClassPath(); 69 } 70 } 71 } 72 | Popular Tags |