org.objectweb.dream.pool
Class ObjectPoolSoftReferenceImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.pool.ObjectPoolSoftReferenceImpl
- All Implemented Interfaces:
- ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, ObjectPool, BindingController, LifeCycleController
public class ObjectPoolSoftReferenceImpl
- extends AbstractComponent
- implements ObjectPool
ObjectPool
implementation that use a list of SoftReference
to
store recycle instances.
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectPoolSoftReferenceImpl
public ObjectPoolSoftReferenceImpl()
newInstance
public Recyclable newInstance()
- Description copied from interface:
ObjectPool
- Returns a new instance of object.
- Specified by:
newInstance
in interface ObjectPool
- Returns:
- a new instance of object.
- See Also:
ObjectPool.newInstance()
recycleInstance
public void recycleInstance(Recyclable recyclable)
- Description copied from interface:
ObjectPool
- Recycles the object so that it can be reused.
- Specified by:
recycleInstance
in interface ObjectPool
- Parameters:
recyclable
- the object to be recycled.- See Also:
ObjectPool.recycleInstance(Recyclable)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Overrides:
bindFc
in class AbstractComponent
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(String,
Object)
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.