ome.tools.spring
Class ShutdownSafeEhcacheManagerFactoryBean

java.lang.Object
  extended by org.springframework.cache.ehcache.EhCacheManagerFactoryBean
      extended by 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 the IllegalStateException which gets thrown on destroy() and simply logs a message.

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com

Field Summary
 
Fields inherited from class org.springframework.cache.ehcache.EhCacheManagerFactoryBean
logger
 
Constructor Summary
ShutdownSafeEhcacheManagerFactoryBean()
           
 
Method Summary
 void destroy()
           
 
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
 

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


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.