com.antiaction.mayhem.core
Class ObjectPool

java.lang.Object
  extended by com.antiaction.mayhem.core.ObjectPool
All Implemented Interfaces:
IObjectPool, java.lang.Runnable

public class ObjectPool
extends java.lang.Object
implements IObjectPool, java.lang.Runnable

Advanced ObjectPool manager.

Version:
1.00
Author:
Nicholas Clarke

Constructor Summary
ObjectPool()
           
 
Method Summary
 void checkIn(IPoolObject obj)
           
 IPoolObject checkOut()
           
 boolean init(java.util.HashMap props)
          Initialize object with specified properties.
 void run()
           
 void setObjectMold(IPoolObject objectMold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPool

public ObjectPool()
Method Detail

init

public boolean init(java.util.HashMap props)
Description copied from interface: IObjectPool
Initialize object with specified properties.

Specified by:
init in interface IObjectPool
Parameters:
props - init properties.

setObjectMold

public void setObjectMold(IPoolObject objectMold)
Specified by:
setObjectMold in interface IObjectPool

checkOut

public IPoolObject checkOut()
Specified by:
checkOut in interface IObjectPool

checkIn

public void checkIn(IPoolObject obj)
Specified by:
checkIn in interface IObjectPool

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.