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 provider of proxy instances must implement to allow theProxiedObjectPoolto create proxies as required.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcreateProxy(T pooledObject, UsageTracking<T> usageTracking)Creates a new proxy object, wrapping the given pooled object.TresolveProxy(T proxy)Resolves the wrapped object from the given proxy.
-
-
-
Method Detail
-
createProxy
T createProxy(T pooledObject, UsageTracking<T> usageTracking)
Creates 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
-
-