|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.pool2.proxy.JdkProxySource<T>
T
- type of the pooled object to be proxiedpublic class JdkProxySource<T>
Provides proxy objects using Java reflection.
Constructor Summary | |
---|---|
JdkProxySource(ClassLoader classLoader,
Class<?>[] interfaces)
Create a new proxy source for the given interfaces. |
Method Summary | |
---|---|
T |
createProxy(T pooledObject,
UsageTracking<T> usageTracking)
Create a new proxy object, wrapping the given pooled object. |
T |
resolveProxy(T proxy)
Obtain the wrapped object from the given proxy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdkProxySource(ClassLoader classLoader, Class<?>[] interfaces)
classLoader
- The class loader with which to create the proxyinterfaces
- The interfaces to proxyMethod Detail |
---|
public T createProxy(T pooledObject, UsageTracking<T> usageTracking)
pooledObject
- The object to wrapusageTracking
- The instance, if any (usually the object pool) to
be provided with usage tracking information for this
wrapped object
public T resolveProxy(T proxy)
proxy
- The proxy object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |