Package org.apache.commons.pool2.proxy
Object pooling proxy implementation.
The org.apache.commons.pool2.proxy
package defines a
object pool that wraps all objects returned to clients. This allows it
to disable those proxies when the objects are returned thereby enabling
the continued use of those objects by clients to be detected..
Support is provided for java.lang.reflect.Proxy
and for
net.sf.cglib.proxy
based proxies. The latter, requires the
additional of the optional Code Generation Library (GCLib).
-
Interface Summary Interface Description ProxySource<T> The interface that any provide of proxy instances must implement to allow theProxiedObjectPool
to create proxies as required. -
Class Summary Class Description BaseProxyHandler<T> Base implementation for object wrappers when using aProxiedObjectPool
.CglibProxyHandler<T> CGLib implementation of the proxy handler.CglibProxySource<T> Provides proxy objects using CGLib.JdkProxyHandler<T> Java reflection implementation of the proxy handler.JdkProxySource<T> Provides proxy objects using Java reflection.ProxiedKeyedObjectPool<K,V> Create a new keyed object pool where the pooled objects are wrapped in proxies allowing better control of pooled objects and in particular the prevention of the continued use of an object by a client after that client returns the object to the pool.ProxiedObjectPool<T> Create a new object pool where the pooled objects are wrapped in proxies allowing better control of pooled objects and in particular the prevention of the continued use of an object by a client after that client returns the object to the pool.