commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <>
Subject [jira] [Updated] (POOL-211) Proxy support for pooled objects
Date Sun, 06 May 2012 21:11:48 GMT


Mark Thomas updated POOL-211:

    Fix Version/s:     (was: Nightly Builds)
> Proxy support for pooled objects
> --------------------------------
>                 Key: POOL-211
>                 URL:
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 1.6
>            Reporter: Brad Koehn
>              Labels: features, patch
>         Attachments: src.jar, test.jar
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> Attached are files and tests that would allow users of commons-pool to interact with
a proxy to the pooled object rather than the pooled object itself. This provides two benefits:
detection of leaked pooled objects (when returnObject() isn't called) with a stack trace and
detection of using pooled objects after they have been returned to the pool. The system provides
a delegate which can be placed in front of any ObjectPool, similar to calling Collections.unmodifiableCollection().
Callers do not know that they're working with a proxy rather than the pooled object itself.
Implementations are provided to use Java proxies or CGLib (useful when the pooled object doesn't
implement an interface). Unit tests are also provided. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message