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 2675 2010-08-25 09:53:02Z lorban $
Author:
Greg Luck

Method Summary
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

ehcache

Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.