org.onebusaway.container.spring.ehcache
Class EhCacheConfigurationFactoryBean
java.lang.Object
org.onebusaway.container.spring.ehcache.EhCacheConfigurationFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>, org.springframework.beans.factory.InitializingBean
public class EhCacheConfigurationFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>, org.springframework.beans.factory.InitializingBean
Spring FactoryBean
for creating an EhCache Configuration
that
supports programmatic DiskStore and Terracotta configuration.
A special note about Terracotta config. While you can create all your
Terracotta-enabled caches programatically using this FactoryBean, you need to
have at least one Terracotta-enabled cache created the old fashioned way
(through an ehcache.xml
resource config) so that the
CacheManager
will properly enable Terracotta support.
- Author:
- bdferris
- See Also:
EhCacheFactoryBean
,
EhCacheManagerFactoryBean
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
EhCacheConfigurationFactoryBean
public EhCacheConfigurationFactoryBean()
setConfigLocation
public void setConfigLocation(org.springframework.core.io.Resource configLocation)
setDiskStorePath
public void setDiskStorePath(File diskStorePath)
setTerracottaUrl
public void setTerracottaUrl(String terracottaUrl)
afterPropertiesSet
public void afterPropertiesSet()
throws IOException,
net.sf.ehcache.CacheException
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
IOException
net.sf.ehcache.CacheException
getObject
public net.sf.ehcache.config.Configuration getObject()
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
Copyright © 2012 OneBusAway. All Rights Reserved.