org.apache.jcs.auxiliary.lateral
Class LateralCacheFactory

java.lang.Object
  extended byorg.apache.jcs.auxiliary.lateral.LateralCacheFactory
All Implemented Interfaces:
AuxiliaryCacheFactory

public class LateralCacheFactory
extends java.lang.Object
implements AuxiliaryCacheFactory

Constructs a LateralCacheNoWaitFacade for the given configuration. Each lateral service / local relationship is managed by one manager. This manager canl have multiple caches. The remote relationships are consolidated and restored via these managers. The facade provides a front to the composite cache so the implmenetation is transparent.

Author:
asmuts

Field Summary
private static org.apache.commons.logging.Log log
           
private  java.lang.String name
           
 
Constructor Summary
LateralCacheFactory()
           
 
Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca, CompositeCache cache)
          Interface method.
 java.lang.String getName()
          Gets the name attribute of the LateralCacheFactory object
 void setName(java.lang.String name)
          Sets the name attribute of the LateralCacheFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

name

private java.lang.String name
Constructor Detail

LateralCacheFactory

public LateralCacheFactory()
Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca,
                                  CompositeCache cache)
Interface method. Allows classforname construction, making caches pluggable.

Specified by:
createCache in interface AuxiliaryCacheFactory
Parameters:
iaca -
cache - The CompositeCache which will contain the AuxiliaryCache instance being created. Allows auxiliaries to retain a reference to their associated CompositeCache.
Returns:

getName

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

Specified by:
getName in interface AuxiliaryCacheFactory
Returns:
The name value

setName

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

Specified by:
setName in interface AuxiliaryCacheFactory
Parameters:
name - The new name value