PoolableObjectFactory.
All operations defined here are essentially no-op's.
This class is immutable, and therefore thread-safe
PooledObjectFactory, BaseKeyedPooledObjectFactory
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | activateObject(final PooledObject<T>
ignored p)Implements org. No-op. |
| public abstract T | Returns: an instance to be served by the pool, not null.Creates an object instance, to be wrapped in a |
| public void | destroyObject(final PooledObject<T>
ignored p)Implements org. No-op. |
| public PooledObject | makeObject()
Implements org. Creates an instance that can be served by the pool and wrap it in a
|
| public void | passivateObject(final PooledObject<T>
ignored p)Implements org. No-op. |
| public boolean | Returns: trueignored p)Implements org. Always returns |
| public abstract PooledObject | Returns: The provided instance, wrapped by aPooledObjectthe instance to wrap, should not be null. obj)Wraps the provided instance with an implementation of
|
| BasePooledObjectFactory | back to summary |
|---|---|
| public BasePooledObjectFactory() Constructs a new instance. | |
| activateObject | back to summary |
|---|---|
| public void activateObject(final PooledObject<T> p) throws Exception Implements org. No-op.
| |
| create | back to summary |
|---|---|
| public abstract T create() throws Exception Creates an object instance, to be wrapped in a This method must support concurrent, multi-threaded invocation.
| |
| destroyObject | back to summary |
|---|---|
| public void destroyObject(final PooledObject<T> p) throws Exception Implements org. No-op.
| |
| makeObject | back to summary |
|---|---|
| public PooledObject Implements org. Doc from org. Creates an instance that can be served by the pool and wrap it in a
| |
| passivateObject | back to summary |
|---|---|
| public void passivateObject(final PooledObject<T> p) throws Exception Implements org. No-op.
| |
| validateObject | back to summary |
|---|---|
| public boolean validateObject(final PooledObject<T> p) Implements org. Always returns
| |
| wrap | back to summary |
|---|---|
| public abstract PooledObject Wraps the provided instance with an implementation of
| |