ehcache

net.sf.ehcache
Class CacheInitializationHelper

java.lang.Object
  extended by net.sf.ehcache.CacheInitializationHelper

public class CacheInitializationHelper
extends Object

Helper class to initialize an Ehcache with a CacheManager without adding the Ehcache to the CacheManager.

Author:
Tim Wu

Constructor Summary
CacheInitializationHelper(CacheManager cacheManager)
          Create a cache initializer with the given CacheManager
 
Method Summary
static CacheManager getInitializingCacheManager(String name)
          Get a currently initializing CacheManager by name
static void initializeEhcache(CacheManager cacheManager, Ehcache cache)
          Initialize the given Ehcache using the given CacheManager
 void initializeEhcache(Ehcache cache)
          Initialize the Ehcache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheInitializationHelper

public CacheInitializationHelper(CacheManager cacheManager)
Create a cache initializer with the given CacheManager

Parameters:
cacheManager -
Method Detail

initializeEhcache

public void initializeEhcache(Ehcache cache)
Initialize the Ehcache.

Parameters:
cache -

initializeEhcache

public static void initializeEhcache(CacheManager cacheManager,
                                     Ehcache cache)
Initialize the given Ehcache using the given CacheManager

Parameters:
cacheManager -
cache -

getInitializingCacheManager

public static CacheManager getInitializingCacheManager(String name)
Get a currently initializing CacheManager by name

Parameters:
name - name of the CacheManager, can be null
Returns:
the initializing CacheManager

ehcache

Copyright 2001-2014, Terracotta, Inc.