org.shiftone.cache.util
Class AbstractDecoratorCacheFactory

java.lang.Object
  extended byorg.shiftone.cache.util.AbstractDecoratorCacheFactory
All Implemented Interfaces:
CacheFactory
Direct Known Subclasses:
JmxCacheFactory, MissHandlingCacheFactory, SoftCacheFactory, StatCacheFactory, SyncCacheFactory

public abstract class AbstractDecoratorCacheFactory
extends java.lang.Object
implements CacheFactory

Version:
$Revision: 1.2 $
Author:
Jeff Drost

Constructor Summary
AbstractDecoratorCacheFactory()
           
 
Method Summary
 CacheFactory getDelegate()
           
 Cache newInstance(java.lang.String cacheName, long timeoutMs, int maxSize)
           
 void setDelegate(CacheFactory delegate)
           
 java.lang.String toString()
           
protected abstract  Cache wrapDelegate(java.lang.String cacheName, Cache delegateCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDecoratorCacheFactory

public AbstractDecoratorCacheFactory()
Method Detail

newInstance

public Cache newInstance(java.lang.String cacheName,
                         long timeoutMs,
                         int maxSize)
Specified by:
newInstance in interface CacheFactory

wrapDelegate

protected abstract Cache wrapDelegate(java.lang.String cacheName,
                                      Cache delegateCache)
                               throws CacheException
Throws:
CacheException

getDelegate

public CacheFactory getDelegate()

setDelegate

public void setDelegate(CacheFactory delegate)

toString

public java.lang.String toString()