org.apache.tapestry.services.impl
Class ObjectPoolImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.ObjectPoolImpl
All Implemented Interfaces:
EventListener, ReportStatusListener, ResetEventListener, ObjectPool

public class ObjectPoolImpl
extends 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

Constructor Summary
ObjectPoolImpl()
           
 
Method Summary
 Object get(Object key)
          Returns an object from the pool, previously stored with the given key.
 void reportStatus(ReportStatusEvent event)
           
 void resetEventDidOccur()
           
 void setServiceId(String serviceId)
           
 void store(Object key, 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
 

Constructor Detail

ObjectPoolImpl

public ObjectPoolImpl()
Method Detail

get

public Object get(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
Returns:

store

public void store(Object key,
                  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(String serviceId)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.