class PoolImplUtils
extends java.lang.Object
| Constructor and Description |
|---|
PoolImplUtils() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.Class<?> |
getFactoryType(java.lang.Class<? extends PooledObjectFactory> factory)
Identifies the concrete type of object that an object factory creates.
|
private static <T> java.lang.Object |
getGenericType(java.lang.Class<T> type,
java.lang.Class<? extends T> clazz)
Obtain the concrete type used by an implementation of an interface that
uses a generic type.
|
private static java.lang.Object |
getTypeParameter(java.lang.Class<?> clazz,
java.lang.reflect.Type argType)
For a generic parameter, return either the Class used or if the type
is unknown, the index for the type in definition of the class
|
static java.lang.Class<?> getFactoryType(java.lang.Class<? extends PooledObjectFactory> factory)
factory - The factory to examineprivate static <T> java.lang.Object getGenericType(java.lang.Class<T> type,
java.lang.Class<? extends T> clazz)
T - The interface typetype - The interface that defines a generic typeclazz - The class that implements the interface with a concrete typeprivate static java.lang.Object getTypeParameter(java.lang.Class<?> clazz,
java.lang.reflect.Type argType)
clazz - defining classargType - the type argument of interestClass representing the type used by the
type parameter or an instance of Integer representing
the index for the type in the definition of the defining class