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 theIllegalStateException
which gets thrown ondestroy()
and simply logs a message.- Since:
- 3.0-Beta2
-
-
Constructor Summary
Constructors Constructor Description ShutdownSafeEhcacheManagerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
-