1 package org.apache.turbine.services.pool; 2 3 18 19 import org.apache.turbine.services.TurbineServices; 20 import org.apache.turbine.util.TurbineException; 21 22 28 public abstract class TurbinePool 29 { 30 38 public static Object getInstance(String className) 39 throws TurbineException 40 { 41 return getService().getInstance(className); 42 } 43 44 54 public static Object getInstance(String className, 55 ClassLoader loader) 56 throws TurbineException 57 { 58 return getService().getInstance(className, loader); 59 } 60 61 74 public static Object getInstance(String className, 75 Object [] params, 76 String [] signature) 77 throws TurbineException 78 { 79 return getService().getInstance(className, params, signature); 80 } 81 82 96 public static Object getInstance(String className, 97 ClassLoader loader, 98 Object [] params, 99 String [] signature) 100 throws TurbineException 101 { 102 return getService().getInstance(className, loader, params, signature); 103 } 104 105 113 public static Object getInstance(Class clazz) 114 throws TurbineException 115 { 116 return getService().getInstance(clazz); 117 } 118 119 129 public static Object getInstance(Class clazz, 130 Object params[], 131 String signature[]) 132 throws TurbineException 133 { 134 return getService().getInstance(clazz, params, signature); 135 } 136 137 146 public static boolean putInstance(Object instance) 147 { 148 return getService().putInstance(instance); 149 } 150 151 156 public static PoolService getService() 157 { 158 return (PoolService) TurbineServices. 159 getInstance().getService(PoolService.SERVICE_NAME); 160 } 161 } 162 | Popular Tags |