| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.pool.TurbinePool
This is a static accessor to common pooling tasks.
| Constructor Summary | |
TurbinePool()
 | 
|
| Method Summary | |
static java.lang.Object | 
getInstance(java.lang.Class clazz)
Gets an instance of a specified class either from the pool or by instatiating from the class if the pool is empty.  | 
static java.lang.Object | 
getInstance(java.lang.Class clazz,
            java.lang.Object[] params,
            java.lang.String[] signature)
Gets an instance of a specified class either from the pool or by instatiating from the class if the pool is empty.  | 
static java.lang.Object | 
getInstance(java.lang.String className)
Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty.  | 
static java.lang.Object | 
getInstance(java.lang.String className,
            java.lang.ClassLoader loader)
Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty.  | 
static java.lang.Object | 
getInstance(java.lang.String className,
            java.lang.ClassLoader loader,
            java.lang.Object[] params,
            java.lang.String[] signature)
Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty.  | 
static java.lang.Object | 
getInstance(java.lang.String className,
            java.lang.Object[] params,
            java.lang.String[] signature)
Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty.  | 
static PoolService | 
getService()
Gets the pool service implementation.  | 
static boolean | 
putInstance(java.lang.Object instance)
Puts a used object back to the pool.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public TurbinePool()
| Method Detail | 
public static java.lang.Object getInstance(java.lang.String className)
                                    throws TurbineException
className - the name of the class.
TurbineException - if recycling fails.
public static java.lang.Object getInstance(java.lang.String className,
                                           java.lang.ClassLoader loader)
                                    throws TurbineException
className - the name of the class.loader - the class loader.
TurbineException - if recycling fails.
public static java.lang.Object getInstance(java.lang.String className,
                                           java.lang.Object[] params,
                                           java.lang.String[] signature)
                                    throws TurbineException
className - the name of the class.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
TurbineException - if recycling fails.
public static java.lang.Object getInstance(java.lang.String className,
                                           java.lang.ClassLoader loader,
                                           java.lang.Object[] params,
                                           java.lang.String[] signature)
                                    throws TurbineException
className - the name of the class.loader - the class loader.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
TurbineException - if recycling fails.
public static java.lang.Object getInstance(java.lang.Class clazz)
                                    throws TurbineException
clazz - the class.
TurbineException - if recycling fails.
public static java.lang.Object getInstance(java.lang.Class clazz,
                                           java.lang.Object[] params,
                                           java.lang.String[] signature)
                                    throws TurbineException
clazz - the class.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
TurbineException - if recycling fails.public static boolean putInstance(java.lang.Object instance)
instance - the object instance to recycle.
public static PoolService getService()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||