org.apache.xml.utils
public class ObjectPool extends Object implements Serializable
UNKNOWN: internal
| Constructor Summary | |
|---|---|
| ObjectPool(Class type)
Constructor ObjectPool
| |
| ObjectPool(String className)
Constructor ObjectPool
| |
| ObjectPool(Class type, int size)
Constructor ObjectPool
| |
| ObjectPool()
Constructor ObjectPool
| |
| Method Summary | |
|---|---|
| void | freeInstance(Object obj)
Add an instance of the given object to the pool
|
| Object | getInstance()
Get an instance of the given object in this pool
|
| Object | getInstanceIfFree()
Get an instance of the given object in this pool if available
|
Parameters: type Type of objects for this pool
Parameters: className Fully qualified name of the type of objects for this pool.
Parameters: type Type of objects for this pool size Size of vector to allocate
Parameters: obj Object to add.
Returns: An instance of the given object
Returns: an instance of the given object if available or null