Package org.apache.commons.pool2.proxy
Interface ProxySource<T>
-
- Type Parameters:
T
- type of the pooled object to be proxied
- All Known Implementing Classes:
CglibProxySource
,JdkProxySource
interface ProxySource<T>
The interface that any provide of proxy instances must implement to allow theProxiedObjectPool
to create proxies as required.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
createProxy
T createProxy(T pooledObject, UsageTracking<T> usageTracking)
Create a new proxy object, wrapping the given pooled object.- Parameters:
pooledObject
- The object to wrapusageTracking
- The instance, if any (usually the object pool) to be provided with usage tracking information for this wrapped object- Returns:
- the new proxy object
-
-