Top Description Methods
org.apache.commons.pool2.proxy

pack-priv Interface ProxySource<T>

Known Direct Implementers
org.apache.commons.pool2.proxy.CglibProxySource, org.apache.commons.pool2.proxy.JdkProxySource
Type Parameters
<T>
type of the pooled object to be proxied
Imports
org.apache.commons.pool2.UsageTracking

The interface that any provider of proxy instances must implement to allow the ProxiedObjectPool to create proxies as required.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the new proxy object
createProxy
(T
The object to wrap
pooledObject
,
UsageTracking<T>
The instance, if any (usually the object pool) to be provided with usage tracking information for this wrapped object
usageTracking
)

Creates a new proxy object, wrapping the given pooled object.

public T

Returns:

The pooled object wrapped by the given proxy
resolveProxy
(T
The proxy object
proxy
)

Resolves the wrapped object from the given proxy.

Method Detail

createProxyback to summary
public T createProxy(T pooledObject, UsageTracking<T> usageTracking)

Creates a new proxy object, wrapping the given pooled object.

Parameters
pooledObject:T

The object to wrap

usageTracking:UsageTracking<T>

The instance, if any (usually the object pool) to be provided with usage tracking information for this wrapped object

Returns:T

the new proxy object

resolveProxyback to summary
public T resolveProxy(T proxy)

Resolves the wrapped object from the given proxy.

Parameters
proxy:T

The proxy object

Returns:T

The pooled object wrapped by the given proxy