You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/08/13 07:52:57 UTC

[maven-resolver] branch redisson updated: Add PreDestroy

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch redisson
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git


The following commit(s) were added to refs/heads/redisson by this push:
     new a5864b5  Add PreDestroy
a5864b5 is described below

commit a5864b564508562ce9b3b8eb8fe7cf102c4030f8
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Aug 13 09:52:32 2020 +0200

    Add PreDestroy
---
 .../org/eclipse/aether/synccontext/RedissonSyncContextFactory.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
index c53da91..1f3207f 100644
--- a/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
+++ b/maven-resolver-synccontext-redisson/src/main/java/org/eclipse/aether/synccontext/RedissonSyncContextFactory.java
@@ -37,6 +37,7 @@ import java.util.LinkedList;
 import java.util.Map;
 import java.util.TreeSet;
 
+import javax.annotation.PreDestroy;
 import javax.annotation.Priority;
 import javax.inject.Named;
 import javax.inject.Singleton;
@@ -166,6 +167,11 @@ public class RedissonSyncContextFactory
         return new RedissonSyncContext( session, localhostDiscriminator, redissonClient, shared );
     }
 
+    @PreDestroy
+    public void shutdown() {
+        LOGGER.trace( "I was shut down!" );
+    }
+
     static class RedissonSyncContext
         implements SyncContext
     {