| 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.beasys.commerce.util.Pool
A generic object pooling class.
| Constructor Summary | |
Pool(PoolMemberFactory factory,
     int size)
Standard constructor.  | 
|
| Method Summary | |
 java.lang.Object | 
getInstance()
Provide a free member of the pool.  | 
 void | 
returnInstance(java.lang.Object memberObject)
Return a member of the pool to available status.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Pool(PoolMemberFactory factory,
            int size)
factory - the factory from which to obtain objects,
  as necessarysize - the maximum pool size| Method Detail | 
public java.lang.Object getInstance()
public void returnInstance(java.lang.Object memberObject)
memberObject - the object to return
  | 
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||