com.mchange.util.impl
Class SoftReferenceObjectCache

java.lang.Object
  extended by com.mchange.util.impl.SoftReferenceObjectCache
All Implemented Interfaces:
ObjectCache

public abstract class SoftReferenceObjectCache
extends Object
implements ObjectCache


Constructor Summary
SoftReferenceObjectCache()
           
 
Method Summary
protected abstract  Object createFromKey(Object key)
           
 Object find(Object key)
           
protected  boolean isDirty(Object key, Object cached)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftReferenceObjectCache

public SoftReferenceObjectCache()
Method Detail

find

public Object find(Object key)
            throws Exception
Specified by:
find in interface ObjectCache
Throws:
Exception

isDirty

protected boolean isDirty(Object key,
                          Object cached)

createFromKey

protected abstract Object createFromKey(Object key)
                                 throws Exception
Throws:
Exception