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 java.lang.Object
Provides proxy objects using Java reflection.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description JdkProxySource(java.lang.ClassLoader classLoader, java.lang.Class<?>[] interfaces)Constructs a new proxy source for the given interfaces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcreateProxy(T pooledObject, UsageTracking<T> usageTracking)TresolveProxy(T proxy)java.lang.StringtoString()
-
-
-
Constructor Detail
-
JdkProxySource
public JdkProxySource(java.lang.ClassLoader classLoader, java.lang.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)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Since:
- 2.4.3
-
-