|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.huihoo.jfox.system.ComponentSupport
org.huihoo.jfox.pool.IndexedObjectPoolSupport
| Field Summary | |
protected ObjectFactory |
factory
|
protected ObjectPoolSupport |
pool
这个池用来实际的生成和缓存池对象 |
| Fields inherited from class org.huihoo.jfox.system.ComponentSupport |
logger, name, proxyInstance, sequence, state |
| Constructor Summary | |
IndexedObjectPoolSupport(ObjectFactory factory)
|
|
IndexedObjectPoolSupport(java.lang.String objectFactoryClassName,
java.lang.String poolableClassName)
|
|
| Method Summary | |
void |
clear()
Clears any objects sitting idle in the pool, releasing any associated resources |
protected void |
doDestroy()
do actually destory action |
protected void |
doInit()
do actually create action |
ObjectFactory |
getObjectFactory()
get the factory use to create new instances |
int |
getRest()
get the count of rest object |
int |
getWorking()
get the count of working object |
| Methods inherited from class org.huihoo.jfox.system.ComponentSupport |
destroy, getLogger, getName, getState, init, parseName, setLogger, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.huihoo.jfox.pool.IndexedObjectPool |
removeObject, restoreObject, retrieveObject |
| Field Detail |
protected ObjectPoolSupport pool
protected ObjectFactory factory
| Constructor Detail |
public IndexedObjectPoolSupport(ObjectFactory factory)
public IndexedObjectPoolSupport(java.lang.String objectFactoryClassName,
java.lang.String poolableClassName)
| Method Detail |
public void clear()
IndexedObjectPool
clear in interface IndexedObjectPoolpublic ObjectFactory getObjectFactory()
IndexedObjectPool
getObjectFactory in interface IndexedObjectPoolpublic int getRest()
IndexedObjectPool
getRest in interface IndexedObjectPoolpublic int getWorking()
IndexedObjectPool
getWorking in interface IndexedObjectPool
protected void doInit()
throws java.lang.Exception
ComponentSupport
doInit in class ComponentSupportjava.lang.Exception
protected void doDestroy()
throws java.lang.Exception
ComponentSupport
doDestroy in class ComponentSupportjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||