net.sf.ehcache.config
Class Configuration

java.lang.Object
  extended bynet.sf.ehcache.config.Configuration

public class Configuration
extends java.lang.Object

The configuration for ehcache. This class is populated through introspection by Configurator

Version:
$Id: Configuration.java,v 1.9 2003/12/23 11:04:33 gregluck Exp $
Author:
Greg Luck

Nested Class Summary
static class Configuration.Cache
          A class to represent Cache configuration e.g.
static class Configuration.DefaultCache
          A class to represent the default cache e.g.
static class Configuration.DiskStore
          A class to represent DiskStore configuration e.g.
 
Constructor Summary
Configuration()
           
 
Method Summary
 void addCache(Configuration.Cache cache)
          Allows BeanHandler to add disk caches to the configuration
 void addDefaultCache(Configuration.DefaultCache defaultCache)
          Allows BeanHandler to add disk caches to the configuration
 void addDiskStore(Configuration.DiskStore diskStore)
          Allows BeanHandler to add disk store locationb to the configuration
 Cache getCache(java.lang.String name)
          Gets a cache
 java.util.Set getCacheKeySet()
          Gets a Map of caches
 Cache getDefaultCache()
          Gets the Default Cache
 java.lang.String getDiskCachePath()
          Gets the disk cache path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

addDiskStore

public void addDiskStore(Configuration.DiskStore diskStore)
                  throws ObjectExistsException
Allows BeanHandler to add disk store locationb to the configuration

Throws:
ObjectExistsException

addDefaultCache

public void addDefaultCache(Configuration.DefaultCache defaultCache)
                     throws ObjectExistsException
Allows BeanHandler to add disk caches to the configuration

Throws:
ObjectExistsException

addCache

public void addCache(Configuration.Cache cache)
              throws ObjectExistsException
Allows BeanHandler to add disk caches to the configuration

Throws:
ObjectExistsException

getDiskCachePath

public java.lang.String getDiskCachePath()
Gets the disk cache path


getDefaultCache

public Cache getDefaultCache()
Gets the Default Cache


getCacheKeySet

public java.util.Set getCacheKeySet()
Gets a Map of caches


getCache

public Cache getCache(java.lang.String name)
Gets a cache

Parameters:
name - the name of the cache
Returns:
a new net.sf.ehcache.Cache