Package org.apache.commons.pool2.impl
Class BaseGenericObjectPool.IdentityWrapper<T>
- java.lang.Object
-
- org.apache.commons.pool2.impl.BaseGenericObjectPool.IdentityWrapper<T>
-
- Type Parameters:
T- type of objects in the pool
- Enclosing class:
- BaseGenericObjectPool<T>
static class BaseGenericObjectPool.IdentityWrapper<T> extends Object
Wrapper for objects under management by the pool. GenericObjectPool and GenericKeyedObjectPool maintain references to all objects under management using maps keyed on the objects. This wrapper class ensures that objects can work as hash keys.
-
-
Constructor Summary
Constructors Constructor Description IdentityWrapper(T instance)Constructs a wrapper for an instance.
-
-
-
Constructor Detail
-
IdentityWrapper
public IdentityWrapper(T instance)
Constructs a wrapper for an instance.- Parameters:
instance- object to wrap
-
-