Simple, flexible local
ObjectCache implementation using a
java.util.HashMap to cache given objects.
The cache uses soft-references which allows objects (softly) referenced by
the cache to be reclaimed by the Java Garbage Collector when they are not
longer referenced elsewhere.
NOTE: Handle with care! If multiple PB instances are used (OJB standard behavior) you
will run into synchronization problems.
Implementation configuration properties:
Property Key |
Property Values |
timeout |
Lifetime of the cached objects in seconds.
If expired the cached object was not returned
on lookup call (and removed from cache).
|
author: Thomas Mahler author: Armin Waibel version: $Id: ObjectCacheLocalDefaultImpl.java,v 1.5.2.2 2005/12/21 22:24:15 tomdz Exp $ |