Package org.apache.commons.pool2.proxy


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).

cglib is unmaintained and does not work well (or possibly at all?) in newer JDKs, particularly JDK17+; see https://github.com/cglib/cglib

  • Classes
    Class
    Description
    cglib is unmaintained and does not work well (or possibly at all?)
    Provides proxy objects using Java reflection.
    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.
    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.