james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [08/10] james-project git commit: JAMES-2441 JSPF DNS as a singleton
Date Mon, 02 Jul 2018 04:49:34 GMT
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 <btellier@linagora.com>
Authored: Fri Jun 29 10:25:01 2018 +0700
Committer: benwa <btellier@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


Mime
View raw message