Package ome.tools.spring
Class ShutdownSafeEhcacheManagerFactoryBean
- java.lang.Object
-
- org.springframework.cache.ehcache.EhCacheManagerFactoryBean
-
- ome.tools.spring.ShutdownSafeEhcacheManagerFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<net.sf.ehcache.CacheManager>,org.springframework.beans.factory.InitializingBean
public class ShutdownSafeEhcacheManagerFactoryBean extends org.springframework.cache.ehcache.EhCacheManagerFactoryBean
Workaround for the Spring/EHCache shutdown sequence. Catches theIllegalStateExceptionwhich gets thrown ondestroy()and simply logs a message.- Since:
- 3.0-Beta2
-
-
Field Summary
-
Fields inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean
logger
-
-
Constructor Summary
Constructors Constructor Description ShutdownSafeEhcacheManagerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()-
Methods inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean
afterPropertiesSet, getObject, getObjectType, isSingleton, setAcceptExisting, setCacheManagerName, setConfigLocation, setShared
-
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Overrides:
destroyin classorg.springframework.cache.ehcache.EhCacheManagerFactoryBean
-
-