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 2018/07/02 04:49:34 UTC

[08/10] james-project git commit: JAMES-2441 JSPF DNS as a singleton

JAMES-2441 JSPF DNS as a singleton


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

Branch: refs/heads/master
Commit: 12682d5ff78871b4b59b6f5254c918c10f5dbae5
Parents: d6ab825
Author: benwa <bt...@linagora.com>
Authored: Fri Jun 29 10:25:01 2018 +0700
Committer: benwa <bt...@linagora.com>
Committed: Mon Jul 2 11:48:53 2018 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/modules/protocols/JSPFModule.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/12682d5f/server/container/guice/guice-common/src/main/java/org/apache/james/modules/protocols/JSPFModule.java
----------------------------------------------------------------------
diff --git a/server/container/guice/guice-common/src/main/java/org/apache/james/modules/protocols/JSPFModule.java b/server/container/guice/guice-common/src/main/java/org/apache/james/modules/protocols/JSPFModule.java
index 15eeb92..9673770 100644
--- a/server/container/guice/guice-common/src/main/java/org/apache/james/modules/protocols/JSPFModule.java
+++ b/server/container/guice/guice-common/src/main/java/org/apache/james/modules/protocols/JSPFModule.java
@@ -26,6 +26,7 @@ import org.slf4j.LoggerFactory;
 
 import com.google.inject.AbstractModule;
 import com.google.inject.Provides;
+import com.google.inject.Singleton;
 
 public class JSPFModule extends AbstractModule {
 
@@ -36,6 +37,7 @@ public class JSPFModule extends AbstractModule {
 
     }
 
+    @Singleton
     @Provides
     public DNSServiceXBillImpl provideJSPFDNSService() {
         return new DNSServiceXBillImpl(new SPFHandler.SPFLogger(LOGGER));


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