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
Provides proxy objects using Java reflection.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionJdkProxySource
(ClassLoader classLoader, Class<?>[] interfaces) Create a new proxy source for the given interfaces. -
Method Summary
Modifier and TypeMethodDescriptioncreateProxy
(T pooledObject, UsageTracking<T> usageTracking) resolveProxy
(T proxy)
-
Constructor Details
-
JdkProxySource
Create a new proxy source for the given interfaces.- Parameters:
classLoader
- The class loader with which to create the proxyinterfaces
- The interfaces to proxy
-
-
Method Details
-
createProxy
-
resolveProxy
-