ehcache

net.sf.ehcache.config.generator
Class ConfigurationUtil

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

public abstract class ConfigurationUtil
extends 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 String generateCacheConfigurationText(Configuration configuration, CacheConfiguration cacheConfiguration)
          Generates configuration text for a CacheConfiguration
static String generateCacheManagerConfigurationText(CacheManager cacheManager)
          Generates Configuration text from a CacheManager
static String generateCacheManagerConfigurationText(Configuration configuration)
          Generates Configuration text from a Configuration
 
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

generateCacheManagerConfigurationText

public static String generateCacheManagerConfigurationText(CacheManager cacheManager)
Generates Configuration text from a CacheManager

Parameters:
cacheManager - the cacheManager
Returns:
text representing the cacheManager Configuration

generateCacheManagerConfigurationText

public static String generateCacheManagerConfigurationText(Configuration configuration)
Generates Configuration text from a Configuration

Parameters:
configuration - the configuration
Returns:
text representing the Configuration

generateCacheConfigurationText

public static String generateCacheConfigurationText(Configuration configuration,
                                                    CacheConfiguration cacheConfiguration)
Generates configuration text for a CacheConfiguration

Parameters:
configuration - the Configuration
cacheConfiguration - the CacheConfiguration
Returns:
text representing the CacheConfiguration

ehcache

Copyright 2001-2014, Terracotta, Inc.