ehcache

net.sf.ehcache.config.generator
Class ConfigurationGenerator

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

public class ConfigurationGenerator
extends java.lang.Object

Utility class for generating configuration texts.

Author:
Abhishek Sanoujam

Constructor Summary
ConfigurationGenerator()
           
 
Method Summary
 java.lang.String generate(CacheConfiguration cacheConfiguration)
          Generates configuration text for a specific cache using the input CacheConfiguration
 java.lang.String generate(Configuration configuration, CacheConfiguration defaultCacheConfiguration, java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs)
          Generates the configuration text for the provided Configuration, the default CacheConfiguration and the map of CacheConfiguration's
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationGenerator

public ConfigurationGenerator()
Method Detail

generate

public java.lang.String generate(Configuration configuration,
                                 CacheConfiguration defaultCacheConfiguration,
                                 java.util.Map<java.lang.String,CacheConfiguration> cacheConfigs)
Generates the configuration text for the provided Configuration, the default CacheConfiguration and the map of CacheConfiguration's

Parameters:
configuration -
defaultCacheConfiguration -
cacheConfigs -
Returns:
String equivalent to an ehcache.xml for the input parameters

generate

public java.lang.String generate(CacheConfiguration cacheConfiguration)
Generates configuration text for a specific cache using the input CacheConfiguration

Parameters:
cacheConfiguration -
Returns:
String containing configuration for the input CacheConfiguration

ehcache

true