org.apache.jcs.auxiliary
Interface AuxiliaryCacheFactory

All Known Implementing Classes:
BlockDiskCacheFactory, HSQLDiskCacheFactory, IndexedDiskCacheFactory, JDBCDiskCacheFactory, LateralCacheAbstractFactory, LateralTCPCacheFactory, MySQLDiskCacheFactory, RemoteCacheFactory, RemoteHttpCacheFactory

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, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Creates an auxiliary using the supplied attributes.
 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

AuxiliaryCache createCache(AuxiliaryCacheAttributes attr,
                           ICompositeCacheManager cacheMgr,
                           ICacheEventLogger cacheEventLogger,
                           IElementSerializer elementSerializer)
Creates an auxiliary using the supplied attributes. Adds it to the composite cache manager.

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.
cacheEventLogger -
elementSerializer -
Returns:
AuxiliaryCache

setName

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

Parameters:
s - The new name value

getName

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

Returns:
The name value


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