org.apache.jcs.auxiliary
Interface AuxiliaryCacheFactory

All Known Implementing Classes:
HSQLCacheFactory, IndexedDiskCacheFactory, LateralCacheAbstractFactory, RemoteCacheFactory

public interface AuxiliaryCacheFactory

All auxiliary caches must have a factory that the cache configurator can use to create instances.


Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr)
           
 java.lang.String getName()
          Gets the name attribute of the AuxiliaryCacheFactory object
 void setName(java.lang.String s)
          Sets the name attribute of the AuxiliaryCacheFactory object
 

Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes attr,
                                  ICompositeCacheManager cacheMgr)
Parameters:
attr -
cacheMgr - This allows auxiliaries to reference the manager without assuming that it is a singleton. This will allow JCS to be a nonsingleton. Also, it makes it easier to test.
Returns:
AuxiliaryCache

setName

public void setName(java.lang.String s)
Sets the name attribute of the AuxiliaryCacheFactory object

Parameters:
s - The new name value

getName

public java.lang.String getName()
Gets the name attribute of the AuxiliaryCacheFactory object

Returns:
The name value


Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.