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 java.lang.Object
implements ObjectCache


Constructor Summary
SoftReferenceObjectCache()
           
 
Method Summary
protected abstract  java.lang.Object createFromKey(java.lang.Object key)
           
 java.lang.Object find(java.lang.Object key)
           
protected  boolean isDirty(java.lang.Object key, java.lang.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 java.lang.Object find(java.lang.Object key)
                      throws java.lang.Exception
Specified by:
find in interface ObjectCache
Throws:
java.lang.Exception

isDirty

protected boolean isDirty(java.lang.Object key,
                          java.lang.Object cached)

createFromKey

protected abstract java.lang.Object createFromKey(java.lang.Object key)
                                           throws java.lang.Exception
Throws:
java.lang.Exception