BasePooledObjectFactory

A base implementation of <code>PoolableObjectFactory</code>. <p> All operations defined here are essentially no-op's. <p> This class is immutable, and therefore thread-safe

@param <T> Type of element managed in this factory.

@see PooledObjectFactory @see BaseKeyedPooledObjectFactory

Members

Functions

activateObject
void activateObject(PooledObject!(T) p)

No-op.

create
T create()

Creates an object instance, to be wrapped in a {@link PooledObject}. <p>This method <strong>must</strong> support concurrent, multi-threaded activation.</p>

destroyObject
void destroyObject(PooledObject!(T) p)

No-op.

makeObject
PooledObject!(T) makeObject()
Undocumented in source. Be warned that the author may not have intended to support it.
passivateObject
void passivateObject(PooledObject!(T) p)

No-op.

validateObject
bool validateObject(PooledObject!(T) p)

This implementation always returns {@code true}.

wrap
PooledObject!(T) wrap(T obj)

Wrap the provided instance with an implementation of {@link PooledObject}.

Meta