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, 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
- Author:
- Josh Moore, josh at glencoesoftware.com
Methods inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean |
afterPropertiesSet, getObject, getObjectType, isSingleton, setCacheManagerName, setConfigLocation, setShared |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShutdownSafeEhcacheManagerFactoryBean
public ShutdownSafeEhcacheManagerFactoryBean()
destroy
public void destroy()
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Overrides:
destroy
in class org.springframework.cache.ehcache.EhCacheManagerFactoryBean
OmeroJava Api
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.