| 程序包 | 说明 |
|---|---|
| com.jdon.controller.pool |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonsPoolAdapter
ObjectPool pool = new StackObjectPool(new MyPoolableObjectFactory());
CommonsPoolAdapter cp = new CommonsPoolAdapter(pool); MyObject mo =
(MyObject)cp.borrowObject(); .... cp.returnObject(mo);
|
Copyright © 2018. All rights reserved.