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).
| Modifier and Type | Interface and Description |
|---|---|
| pack-priv interface | ProxySource<
type of the pooled object to be proxied T>The interface that any provider of proxy instances must implement to allow the
|
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | BaseProxyHandler<
type of the wrapped pooled object T>Base implementation for object wrappers when using a
|
| pack-priv class | |
| public class | |
| pack-priv class | JdkProxyHandler<
type of the wrapped pooled object T>Java reflection implementation of the proxy handler. |
| public class | JdkProxySource<
type of the pooled object to be proxied T>Provides proxy objects using Java reflection. |
| public class | ProxiedKeyedObjectPool<
type of the key K, type of the pooled object 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. |
| public class | ProxiedObjectPool<
type of the pooled object 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. |