ehcache

net.sf.ehcache.config.generator
Class ConfigurationSource

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

public abstract class ConfigurationSource
extends Object

Class encapsulating the source of configuration for a cache manager

Author:
Abhishek Sanoujam

Constructor Summary
protected ConfigurationSource()
          protected constructor
 
Method Summary
abstract  Configuration createConfiguration()
          Abstract method used for creating a Configuration based on the source
static ConfigurationSource getConfigurationSource()
          Utility factory method for creating a ConfigurationSource based on default settings (default ehcache.xml in classpath if one is present or an ehcache-failsafe provided with the kit
static ConfigurationSource getConfigurationSource(File file)
          Utility factory method for creating a ConfigurationSource based on a file.
static ConfigurationSource getConfigurationSource(InputStream configFileStream)
          Utility factory method for creating a ConfigurationSource based on InputStream
static ConfigurationSource getConfigurationSource(URL configFileURL)
          Utility factory method for creating a ConfigurationSource based on URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationSource

protected ConfigurationSource()
protected constructor

Method Detail

getConfigurationSource

public static ConfigurationSource getConfigurationSource(File file)
Utility factory method for creating a ConfigurationSource based on a file.

Parameters:
file -
Returns:
ConfigurationSource for the input file

getConfigurationSource

public static ConfigurationSource getConfigurationSource(URL configFileURL)
Utility factory method for creating a ConfigurationSource based on URL

Parameters:
configFileURL -
Returns:
ConfigurationSource for the input URL

getConfigurationSource

public static ConfigurationSource getConfigurationSource(InputStream configFileStream)
Utility factory method for creating a ConfigurationSource based on InputStream

Parameters:
configFileStream -
Returns:
ConfigurationSource for the input InputStream

getConfigurationSource

public static ConfigurationSource getConfigurationSource()
Utility factory method for creating a ConfigurationSource based on default settings (default ehcache.xml in classpath if one is present or an ehcache-failsafe provided with the kit

Returns:
Default ConfigurationSource

createConfiguration

public abstract Configuration createConfiguration()
Abstract method used for creating a Configuration based on the source

Returns:
Configuration based on the source

ehcache

Copyright 2001-2015, Terracotta, Inc.