Returns a synchronized (thread-safe) PooledObjectFactory backed by the
specified PooledObjectFactory.
@param factory
the PooledObjectFactory to be "wrapped" in a synchronized
PooledObjectFactory.
@param <T> the type of objects in the pool
@return a synchronized view of the specified PooledObjectFactory.
Returns a synchronized (thread-safe) PooledObjectFactory backed by the specified PooledObjectFactory.
@param factory the PooledObjectFactory to be "wrapped" in a synchronized PooledObjectFactory. @param <T> the type of objects in the pool @return a synchronized view of the specified PooledObjectFactory.