1 package org.apache.turbine.services.factory; 2 3 18 19 import org.apache.turbine.services.TurbineServices; 20 import org.apache.turbine.util.TurbineException; 21 22 32 public abstract class TurbineFactory 33 { 34 40 public static FactoryService getService() 41 { 42 return (FactoryService) TurbineServices.getInstance() 43 .getService(FactoryService.SERVICE_NAME); 44 } 45 52 public static Object getInstance(String className) 53 throws TurbineException 54 { 55 return getService().getInstance(className); 56 } 57 58 69 public static Object getInstance(String className, 70 ClassLoader loader) 71 throws TurbineException 72 { 73 return getService().getInstance(className, 74 loader); 75 } 76 77 88 public static Object getInstance(String className, 89 Object [] params, 90 String [] signature) 91 throws TurbineException 92 { 93 return getService().getInstance(className, 94 params, 95 signature); 96 } 97 98 113 public static Object getInstance(String className, 114 ClassLoader loader, 115 Object [] params, 116 String [] signature) 117 throws TurbineException 118 { 119 return getService().getInstance(className, 120 loader, 121 params, 122 signature); 123 } 124 125 126 133 public static boolean isLoaderSupported(String className) 134 throws TurbineException 135 { 136 return getService().isLoaderSupported(className); 137 } 138 139 150 public static Class [] getSignature(Class clazz, 151 Object params[], 152 String signature[]) 153 throws ClassNotFoundException 154 { 155 return getService().getSignature(clazz, params, signature); 156 } 157 } 158 | Popular Tags |