org.apache.jcs.auxiliary.remote
Class RemoteCacheFactory

java.lang.Object
  extended byorg.apache.jcs.auxiliary.remote.RemoteCacheFactory
All Implemented Interfaces:
AuxiliaryCacheFactory

public class RemoteCacheFactory
extends java.lang.Object
implements AuxiliaryCacheFactory

Description of the Class

Author:
asmuts

Field Summary
static java.util.HashMap facades
          Description of the Field
private static org.apache.commons.logging.Log log
           
private  java.lang.String name
           
 
Constructor Summary
RemoteCacheFactory()
           
 
Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca, CompositeCache cache)
          Interface method.
 java.lang.String getName()
          Gets the name attribute of the RemoteCacheFactory object
 void setName(java.lang.String name)
          Sets the name attribute of the RemoteCacheFactory 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

facades

public static final java.util.HashMap facades
Description of the Field

Constructor Detail

RemoteCacheFactory

public RemoteCacheFactory()
Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes iaca,
                                  CompositeCache cache)
Interface method. Allows classforname construction, making caches pluggable. Should be able to make this work for clusters and local caches

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

getName

public java.lang.String getName()
Gets the name attribute of the RemoteCacheFactory 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 RemoteCacheFactory object

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