T - type of the pooled object to be proxiedinterface ProxySource<T>
ProxiedObjectPool to create proxies as required.| Modifier and Type | Method and 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.
|
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