From 8b94aece082568c5447397c05c8bca4c85b1262e Mon Sep 17 00:00:00 2001 From: Quan Tran Date: Wed, 4 Dec 2024 14:34:37 +0700 Subject: [PATCH] [ENHANCEMENT] DistributedDeletedMessageVaultDeletionCallback should be singleton --- .../modules/mailbox/DistributedDeletedMessageVaultModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/container/guice/distributed/src/main/java/org/apache/james/modules/mailbox/DistributedDeletedMessageVaultModule.java b/server/container/guice/distributed/src/main/java/org/apache/james/modules/mailbox/DistributedDeletedMessageVaultModule.java index a291622a1d5..68c1744ea97 100644 --- a/server/container/guice/distributed/src/main/java/org/apache/james/modules/mailbox/DistributedDeletedMessageVaultModule.java +++ b/server/container/guice/distributed/src/main/java/org/apache/james/modules/mailbox/DistributedDeletedMessageVaultModule.java @@ -67,6 +67,7 @@ protected void configure() { Multibinder.newSetBinder(binder(), DeleteMessageListener.DeletionCallback.class) .addBinding() .to(DistributedDeletedMessageVaultDeletionCallback.class); + bind(DistributedDeletedMessageVaultDeletionCallback.class).in(Scopes.SINGLETON); } @ProvidesIntoSet