ehcache

net.sf.ehcache.config.generator
Class ConfigurationUtil

java.lang.Object
  extended by net.sf.ehcache.config.generator.ConfigurationUtil

public abstract class ConfigurationUtil
extends java.lang.Object

Utility class with static methods for generating configuration texts in different ways based on input

Author:
Abhishek Sanoujam

Constructor Summary
ConfigurationUtil()
           
 
Method Summary
static java.lang.String generateConfigurationTextForCache(CacheManager cacheManager, java.lang.String cacheName)
          Generates configuration text for a cache based on the Cache present in the input CacheManager for the input cacheName
static java.lang.String generateConfigurationTextForCacheFromSource(ConfigurationSource configSource, java.lang.String cacheName)
          Generates configuration text for a cache from the ConfigurationSource
static java.lang.String generateConfigurationTextFromConfiguration(CacheManager cacheManager, Configuration configuration)
          Generates configuration text based on the input Configuration.
static java.lang.String generateConfigurationTextFromSource(ConfigurationSource configSource)
          Generate configuration text based on the input ConfigurationSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationUtil

public ConfigurationUtil()
Method Detail

generateConfigurationTextFromSource

public static java.lang.String generateConfigurationTextFromSource(ConfigurationSource configSource)
Generate configuration text based on the input ConfigurationSource

Parameters:
configSource -
Returns:
String representing the input ConfigurationSource

generateConfigurationTextFromConfiguration

public static java.lang.String generateConfigurationTextFromConfiguration(CacheManager cacheManager,
                                                                          Configuration configuration)
Generates configuration text based on the input Configuration. CacheConfiguration's from the input CacheManager will override the CacheConfiguration present in the Configuration

Parameters:
cacheManager -
configuration -
Returns:
String representing the configuration based on the input Configuration and CacheManager

generateConfigurationTextForCacheFromSource

public static java.lang.String generateConfigurationTextForCacheFromSource(ConfigurationSource configSource,
                                                                           java.lang.String cacheName)
Generates configuration text for a cache from the ConfigurationSource

Parameters:
configSource -
cacheName -
Returns:
String representing the cache configuration for the input cacheName

generateConfigurationTextForCache

public static java.lang.String generateConfigurationTextForCache(CacheManager cacheManager,
                                                                 java.lang.String cacheName)
Generates configuration text for a cache based on the Cache present in the input CacheManager for the input cacheName

Parameters:
cacheManager -
cacheName -
Returns:
String representing configuration for the cacheName

ehcache

true