|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.boylesoftware.cb2.util.pool.PooledObjectFactoryAdapter
com.boylesoftware.cb2.util.pool.SimplePooledObjectFactory
Simple pooled object factory implementation, which creates instances of a specified during initialization class using its default constructor.
| Field Summary | |
protected java.lang.Class |
theClass
The objects' class. |
| Fields inherited from class com.boylesoftware.cb2.util.pool.PooledObjectFactoryAdapter |
pool |
| Constructor Summary | |
SimplePooledObjectFactory(java.lang.Class theClass)
Constructs a factory. |
|
| Method Summary | |
java.lang.Object |
createObject()
Instantiates an object for a pool. |
| Methods inherited from class com.boylesoftware.cb2.util.pool.PooledObjectFactoryAdapter |
destroyObject, resetObject, setPool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.lang.Class theClass
| Constructor Detail |
public SimplePooledObjectFactory(java.lang.Class theClass)
theClass - class of the objects this factory will be
instantiating.| Method Detail |
public java.lang.Object createObject()
java.lang.RuntimeException - if the object cannot be instantiated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||