ehcache

net.sf.ehcache.config
Class ConfigurationFactory

java.lang.Object
  extended by net.sf.ehcache.config.ConfigurationFactory

public final class ConfigurationFactory
extends Object

A utility class which configures beans from XML, using reflection.

Version:
$Id: ConfigurationFactory.java 8764 2014-02-18 23:08:43Z teck $
Author:
Greg Luck

Method Summary
static CacheConfiguration parseCacheConfiguration(String xmlString)
          Configures a cache bean from a string of XML.
static Configuration parseConfiguration()
          Configures a bean from an XML file in the classpath.
static Configuration parseConfiguration(File file)
          Configures a bean from an XML file.
static Configuration parseConfiguration(InputStream inputStream)
          Configures a bean from an XML input stream.
static Configuration parseConfiguration(URL url)
          Configures a bean from an XML file available as an URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseConfiguration

public static Configuration parseConfiguration(File file)
                                        throws CacheException
Configures a bean from an XML file.

Throws:
CacheException

parseConfiguration

public static Configuration parseConfiguration(URL url)
                                        throws CacheException
Configures a bean from an XML file available as an URL.

Throws:
CacheException

parseConfiguration

public static Configuration parseConfiguration()
                                        throws CacheException
Configures a bean from an XML file in the classpath.

Throws:
CacheException

parseConfiguration

public static Configuration parseConfiguration(InputStream inputStream)
                                        throws CacheException
Configures a bean from an XML input stream.

Throws:
CacheException

parseCacheConfiguration

public static CacheConfiguration parseCacheConfiguration(String xmlString)
                                                  throws CacheException
Configures a cache bean from a string of XML.

Throws:
CacheException

ehcache

Copyright 2001-2017, Terracotta, Inc.