commit | e234eba8db0dfcfa4e80b2fdf29eb26ace3e8493 | [log] [tgz] |
---|---|---|
author | Olivier Lamy <olamy@apache.org> | Sat Dec 22 14:22:00 2012 +0000 |
committer | Olivier Lamy <olamy@apache.org> | Sat Dec 22 14:22:00 2012 +0000 |
tree | 8d68cfa56da8afa76b1e83003af448f4fc2a25fa | |
parent | 3f100d419986db10d39606be3f39fefbf38cb203 [diff] |
dispose cache must be annotated with @PreDestroy to ensure correct shutdown git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-components/trunk@1425283 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/spring-cache-providers/spring-cache-ehcache/src/main/java/org/apache/archiva/redback/components/cache/ehcache/EhcacheCache.java b/spring-cache-providers/spring-cache-ehcache/src/main/java/org/apache/archiva/redback/components/cache/ehcache/EhcacheCache.java index 07be067..1132b87 100644 --- a/spring-cache-providers/spring-cache-ehcache/src/main/java/org/apache/archiva/redback/components/cache/ehcache/EhcacheCache.java +++ b/spring-cache-providers/spring-cache-ehcache/src/main/java/org/apache/archiva/redback/components/cache/ehcache/EhcacheCache.java
@@ -30,6 +30,7 @@ import org.slf4j.LoggerFactory; import javax.annotation.PostConstruct; +import javax.annotation.PreDestroy; /** * EhcacheCache @@ -214,6 +215,7 @@ } } + @PreDestroy public void dispose() { if ( cacheManager.getStatus().equals( Status.STATUS_ALIVE ) )