Package net.sf.ehcache.config
Class ConfigurationFactory
- java.lang.Object
-
- net.sf.ehcache.config.ConfigurationFactory
-
public final class ConfigurationFactory extends java.lang.ObjectA utility class which configures beans from XML, using reflection.- Version:
- $Id$
- Author:
- Greg Luck
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CacheConfigurationparseCacheConfiguration(java.lang.String xmlString)Configures a cache bean from a string of XML.static ConfigurationparseConfiguration()Configures a bean from an XML file in the classpath.static ConfigurationparseConfiguration(java.io.File file)Configures a bean from an XML file.static ConfigurationparseConfiguration(java.io.InputStream inputStream)Configures a bean from an XML input stream.static ConfigurationparseConfiguration(java.net.URL url)Configures a bean from an XML file available as an URL.
-
-
-
Method Detail
-
parseConfiguration
public static Configuration parseConfiguration(java.io.File file) throws CacheException
Configures a bean from an XML file.- Throws:
CacheException
-
parseConfiguration
public static Configuration parseConfiguration(java.net.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(java.io.InputStream inputStream) throws CacheException
Configures a bean from an XML input stream.- Throws:
CacheException
-
parseCacheConfiguration
public static CacheConfiguration parseCacheConfiguration(java.lang.String xmlString) throws CacheException
Configures a cache bean from a string of XML.- Throws:
CacheException
-
-