Class 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 the IllegalStateException which gets thrown on destroy() and simply logs a message.
    Since:
    3.0-Beta2
    • Field Summary

      • Fields inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      • Methods inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean

        afterPropertiesSet, getObject, getObjectType, isSingleton, setAcceptExisting, setCacheManagerName, setConfigLocation, setShared
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShutdownSafeEhcacheManagerFactoryBean

        public ShutdownSafeEhcacheManagerFactoryBean()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Overrides:
        destroy in class org.springframework.cache.ehcache.EhCacheManagerFactoryBean