I'm looking for a modern implementation of an object pool in Java. I can see the apache commons one, but to be honest, I'd rather one that uses generics, and the concurrency stuff from more recent versions of java.
Does the commons pool really work well? The code looks pretty, erm, ugly.
I'd need something that allows custom liveness validation etc etc.
Thanks!