org.apache.tapestry.services
Interface ObjectPool

All Known Implementing Classes:
ObjectPoolImpl

public interface ObjectPool

An pool for objects. Objects may be stored in a Pool for later reuse.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 Object get(Object key)
          Returns an object from the pool, previously stored with the given key.
 void store(Object key, Object value)
          Stores an object into the pool for later retrieval with the provided key.
 

Method Detail

get

Object get(Object key)
Returns an object from the pool, previously stored with the given key. May return null if no such object exists.

Returns:

store

void store(Object key,
           Object value)
Stores an object into the pool for later retrieval with the provided key.



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