org.apache.jcs.auxiliary
Class AuxiliaryCacheConfigurator

java.lang.Object
  extended by org.apache.jcs.auxiliary.AuxiliaryCacheConfigurator

public class AuxiliaryCacheConfigurator
extends Object

Configuration util for auxiliary caches. I plan to move the auxiliary configuration from the composite cache configurator here.


Field Summary
static String ATTRIBUTE_PREFIX
          .attributes
static String CACHE_EVENT_LOGGER_PREFIX
          jcs.auxiliary.NAME.cacheeventlogger=CLASSNAME
static String SERIALIZER_PREFIX
          jcs.auxiliary.NAME.serializer=CLASSNAME
 
Constructor Summary
AuxiliaryCacheConfigurator()
           
 
Method Summary
static ICacheEventLogger parseCacheEventLogger(Properties props, String auxPrefix)
          Parses the event logger config, if there is any for the auxiliary.
static IElementSerializer parseElementSerializer(Properties props, String auxPrefix)
          Parses the element config, if there is any for the auxiliary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_PREFIX

public static final String ATTRIBUTE_PREFIX
.attributes

See Also:
Constant Field Values

CACHE_EVENT_LOGGER_PREFIX

public static final String CACHE_EVENT_LOGGER_PREFIX
jcs.auxiliary.NAME.cacheeventlogger=CLASSNAME

jcs.auxiliary.NAME.cacheeventlogger.attributes.CUSTOMPROPERTY=VALUE

See Also:
Constant Field Values

SERIALIZER_PREFIX

public static final String SERIALIZER_PREFIX
jcs.auxiliary.NAME.serializer=CLASSNAME

jcs.auxiliary.NAME.serializer.attributes.CUSTOMPROPERTY=VALUE

See Also:
Constant Field Values
Constructor Detail

AuxiliaryCacheConfigurator

public AuxiliaryCacheConfigurator()
Method Detail

parseCacheEventLogger

public static ICacheEventLogger parseCacheEventLogger(Properties props,
                                                      String auxPrefix)
Parses the event logger config, if there is any for the auxiliary.

Parameters:
props -
auxPrefix - - ex. AUXILIARY_PREFIX + auxName
Returns:
cacheEventLogger

parseElementSerializer

public static IElementSerializer parseElementSerializer(Properties props,
                                                        String auxPrefix)
Parses the element config, if there is any for the auxiliary.

Parameters:
props -
auxPrefix - - ex. AUXILIARY_PREFIX + auxName
Returns:
cacheEventLogger


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