public class SingletonEhCacheManagerFactory extends Object
Modifier and Type | Method and Description |
---|---|
static net.sf.ehcache.CacheManager |
createCacheManager(EhCacheConfigurer configurer,
Properties runtimeSettings)
Creates the singleton cache manager if it does not yet exist.
|
static net.sf.ehcache.CacheManager |
createCacheManager(String pathToResource)
Creates the singleton cache manager if it does not yet exist.
|
static net.sf.ehcache.CacheManager |
getInstance() |
public static net.sf.ehcache.CacheManager createCacheManager(EhCacheConfigurer configurer, Properties runtimeSettings) throws net.sf.ehcache.CacheException
configurer
- provides the configuration to use when initializing or updating the cache managerruntimeSettings
- additional settings which will be passed to the configurer to allow overriding
some settingsnet.sf.ehcache.CacheException
- in case the creation failedpublic static net.sf.ehcache.CacheManager createCacheManager(String pathToResource) throws net.sf.ehcache.CacheException
pathToResource
- path to the EhCache XML configuration resource. The resource is expected to be on
the class path.net.sf.ehcache.CacheException
- in case the creation failedpublic static net.sf.ehcache.CacheManager getInstance()
createCacheManager(String)
hasn't been called yet.Copyright © 2019 Communote team. All rights reserved.