public class EhCacheFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>
FactoryBean used to create EhCache caches as beans.| Constructor and Description |
|---|
EhCacheFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
net.sf.ehcache.Cache |
getObject() |
Class<?> |
getObjectType() |
void |
init() |
boolean |
isSingleton() |
void |
setConfiguration(net.sf.ehcache.config.CacheConfiguration configuration) |
public void setConfiguration(net.sf.ehcache.config.CacheConfiguration configuration)
@PostConstruct public void init()
@PreDestroy public void destroy()
public net.sf.ehcache.Cache getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<net.sf.ehcache.Cache>Copyright © 2020 CrafterCMS. All rights reserved.