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
SpringFactoryBeanfor creating an EhCacheConfigurationthat 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 anehcache.xmlresource config) so that theCacheManagerwill properly enable Terracotta support.- Author:
- bdferris
- See Also:
EhCacheFactoryBean,EhCacheManagerFactoryBean
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description EhCacheConfigurationFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()net.sf.ehcache.config.ConfigurationgetObject()Class<?>getObjectType()booleanisSingleton()voidsetConfigLocation(org.springframework.core.io.Resource configLocation)voidsetDiskStorePath(File diskStorePath)voidsetTerracottaUrl(String terracottaUrl)
-
-
-
Method Detail
-
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
IOExceptionnet.sf.ehcache.CacheException
-
getObject
public net.sf.ehcache.config.Configuration getObject()
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<net.sf.ehcache.config.Configuration>
-
-