org.sape.carbon.core.config.cache
Class ConfigurationCacheFactory

java.lang.Object
  |
  +--org.sape.carbon.core.config.cache.ConfigurationCacheFactory

public class ConfigurationCacheFactory
extends Object

Factory class that returns an instance of ConfigurationCache. By default, getInstance returns an instance of SynchronizedConfigurationCache. If a class that implements ConfigurationCache is specified within DeploymentProperties by the name carbon.config.CacheType, an instance of that class will be returned. Copyright 2002 Sapient

Since:
carbon 1.1
Version:
$Revision: 1.8 $($Author: dvoet $ / $Date: 2003/05/05 21:21:16 $)
Author:
Douglas Voet, Oct 24, 2002

Field Summary
static String CACHE_TYPE_PROPERTY_NAME
          Holds teh deployment property name for the cache type.
private static org.apache.commons.logging.Log log
          Provides a handle to Apache-commons logger
 
Constructor Summary
ConfigurationCacheFactory()
           
 
Method Summary
static ConfigurationCache getInstance(ConfigurationService configService)
          Gets a new instance of the configured ConfigurationCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Provides a handle to Apache-commons logger


CACHE_TYPE_PROPERTY_NAME

public static final String CACHE_TYPE_PROPERTY_NAME
Holds teh deployment property name for the cache type.

See Also:
Constant Field Values
Constructor Detail

ConfigurationCacheFactory

public ConfigurationCacheFactory()
Method Detail

getInstance

public static ConfigurationCache getInstance(ConfigurationService configService)
Gets a new instance of the configured ConfigurationCache

Parameters:
configService - the ConfigurationService that the cache will use to retrieve configuration docuemnts
Returns:
ConfigurationCache


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.