Package org.apache.commons.pool2.proxy
Class JdkProxySource<T>
- java.lang.Object
-
- org.apache.commons.pool2.proxy.JdkProxySource<T>
-
- Type Parameters:
T
- type of the pooled object to be proxied
public class JdkProxySource<T> extends Object
Provides proxy objects using Java reflection.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description JdkProxySource(ClassLoader classLoader, Class<?>[] interfaces)
Constructs a new proxy source for the given interfaces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
createProxy(T pooledObject, UsageTracking<T> usageTracking)
T
resolveProxy(T proxy)
String
toString()
-
-
-
Constructor Detail
-
JdkProxySource
public JdkProxySource(ClassLoader classLoader, Class<?>[] interfaces)
Constructs a new proxy source for the given interfaces.- Parameters:
classLoader
- The class loader with which to create the proxyinterfaces
- The interfaces to proxy
-
-
Method Detail
-
createProxy
public T createProxy(T pooledObject, UsageTracking<T> usageTracking)
-
resolveProxy
public T resolveProxy(T proxy)
-
-