james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [11/17] james-project git commit: JAMES-2414 s/set/setExecutionMode/ for ConfigurableExecutionMode
Date Tue, 12 Jun 2018 00:03:30 GMT
JAMES-2414 s/set/setExecutionMode/ for ConfigurableExecutionMode


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

Branch: refs/heads/master
Commit: e9de12efe545a395d6ffde78a146b3480a806499
Parents: 3dd70a1
Author: benwa <btellier@linagora.com>
Authored: Thu Jun 7 16:59:55 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Tue Jun 12 07:01:45 2018 +0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/james/mailbox/MailboxListener.java    | 2 +-
 .../apache/james/mailbox/spamassassin/SpamAssassinListener.java    | 2 +-
 .../apache/james/modules/mailbox/MailboxListenersLoaderImpl.java   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/e9de12ef/mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
----------------------------------------------------------------------
diff --git a/mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java b/mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
index 86fd3d4..d1aeb7d 100644
--- a/mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
+++ b/mailbox/api/src/main/java/org/apache/james/mailbox/MailboxListener.java
@@ -41,7 +41,7 @@ import org.apache.james.mailbox.quota.QuotaSize;
 public interface MailboxListener {
 
     interface ConfigurableExecutionMode {
-        void set(ExecutionMode executionMode);
+        void setExecutionMode(ExecutionMode executionMode);
     }
 
     enum ListenerType {

http://git-wip-us.apache.org/repos/asf/james-project/blob/e9de12ef/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
----------------------------------------------------------------------
diff --git a/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
b/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
index b25fd08..6bfb91b 100644
--- a/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
+++ b/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
@@ -60,7 +60,7 @@ public class SpamAssassinListener implements SpamEventListener, MailboxListener.
     }
 
     @Override
-    public void set(ExecutionMode executionMode) {
+    public void setExecutionMode(ExecutionMode executionMode) {
         this.executionMode = Optional.of(executionMode);
     }
 

http://git-wip-us.apache.org/repos/asf/james-project/blob/e9de12ef/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/MailboxListenersLoaderImpl.java
----------------------------------------------------------------------
diff --git a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/MailboxListenersLoaderImpl.java
b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/MailboxListenersLoaderImpl.java
index 3e59a78..fced6be 100644
--- a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/MailboxListenersLoaderImpl.java
+++ b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/MailboxListenersLoaderImpl.java
@@ -88,7 +88,7 @@ public class MailboxListenersLoaderImpl implements Configurable, MailboxListener
                 MailboxListener.ConfigurableExecutionMode configurableExecutionMode = (MailboxListener.ConfigurableExecutionMode)
listener;
                 configuration.isAsync()
                     .map(this::getExecutionMode)
-                    .ifPresent(configurableExecutionMode::set);
+                    .ifPresent(configurableExecutionMode::setExecutionMode);
             }
             return listener;
         } catch (ClassNotFoundException | ConfigurationException e) {


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


Mime
View raw message