org.apache.tapestry.services.impl
Class ObjectPoolImpl
java.lang.Object
org.apache.tapestry.services.impl.ObjectPoolImpl
- All Implemented Interfaces:
- java.util.EventListener, ReportStatusListener, ResetEventListener, ObjectPool
public class ObjectPoolImpl
- extends java.lang.Object
- implements ObjectPool, ResetEventListener, ReportStatusListener
Implementation of the ObjectPool
interface.
This ia a minimal implementation, one that has no concept of automatically removing unused pooled
objects. Eventually, it will also register for notifications about general cache cleaning.
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Method Summary |
java.lang.Object |
get(java.lang.Object key)
Returns an object from the pool, previously stored with the given key. |
void |
reportStatus(ReportStatusEvent event)
|
void |
resetEventDidOccur()
|
void |
setServiceId(java.lang.String serviceId)
|
void |
store(java.lang.Object key,
java.lang.Object value)
Stores an object into the pool for later retrieval with the provided key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectPoolImpl
public ObjectPoolImpl()
get
public java.lang.Object get(java.lang.Object key)
- Description copied from interface:
ObjectPool
- Returns an object from the pool, previously stored with the given key. May
return null if no such object exists.
- Specified by:
get
in interface ObjectPool
store
public void store(java.lang.Object key,
java.lang.Object value)
- Description copied from interface:
ObjectPool
- Stores an object into the pool for later retrieval with the provided key.
- Specified by:
store
in interface ObjectPool
resetEventDidOccur
public void resetEventDidOccur()
- Specified by:
resetEventDidOccur
in interface ResetEventListener
reportStatus
public void reportStatus(ReportStatusEvent event)
- Specified by:
reportStatus
in interface ReportStatusListener
setServiceId
public void setServiceId(java.lang.String serviceId)