You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/01/17 06:50:37 UTC

[21/27] james-project git commit: JAMES-2641 DefaultEventBus should not bind specific listeners

JAMES-2641 DefaultEventBus should not bind specific listeners


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/897a206a
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/897a206a
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/897a206a

Branch: refs/heads/master
Commit: 897a206ab68a0c7e35c84c76c465d822a70c3a6e
Parents: 7cc4a19
Author: Benoit Tellier <bt...@linagora.com>
Authored: Tue Jan 15 10:46:38 2019 +0700
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Thu Jan 17 13:49:09 2019 +0700

----------------------------------------------------------------------
 .../james/modules/mailbox/DefaultEventModule.java   | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/897a206a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java
----------------------------------------------------------------------
diff --git a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java
index 79d2dab..83056d1 100644
--- a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java
+++ b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java
@@ -30,8 +30,6 @@ import org.apache.james.mailbox.events.EventBus;
 import org.apache.james.mailbox.events.InVMEventBus;
 import org.apache.james.mailbox.events.delivery.EventDelivery;
 import org.apache.james.mailbox.events.delivery.InVmEventDelivery;
-import org.apache.james.mailbox.store.event.MailboxAnnotationListener;
-import org.apache.james.mailbox.store.quota.ListeningCurrentQuotaUpdater;
 import org.apache.james.server.core.configuration.ConfigurationProvider;
 import org.apache.james.utils.ConfigurationPerformer;
 
@@ -44,22 +42,18 @@ import com.google.inject.multibindings.Multibinder;
 public class DefaultEventModule extends AbstractModule {
     @Override
     protected void configure() {
-
         Multibinder.newSetBinder(binder(), ConfigurationPerformer.class).addBinding().to(ListenerRegistrationPerformer.class);
 
-        bind(ListeningCurrentQuotaUpdater.class).in(Scopes.SINGLETON);
-        bind(MailboxAnnotationListener.class).in(Scopes.SINGLETON);
-
         bind(MailboxListenerFactory.class).in(Scopes.SINGLETON);
         bind(MailboxListenersLoaderImpl.class).in(Scopes.SINGLETON);
-        bind(MailboxListenersLoader.class).to(MailboxListenersLoaderImpl.class);
-        Multibinder.newSetBinder(binder(), MailboxListener.GroupMailboxListener.class);
-
         bind(InVmEventDelivery.class).in(Scopes.SINGLETON);
-        bind(EventDelivery.class).to(InVmEventDelivery.class);
-
         bind(InVMEventBus.class).in(Scopes.SINGLETON);
+        
+        bind(MailboxListenersLoader.class).to(MailboxListenersLoaderImpl.class);
+        bind(EventDelivery.class).to(InVmEventDelivery.class);
         bind(EventBus.class).to(InVMEventBus.class);
+
+        Multibinder.newSetBinder(binder(), MailboxListener.GroupMailboxListener.class);
     }
 
     @Singleton


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org