james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject james-project git commit: JAMES-1741 DNSJava was not well initialized
Date Mon, 23 May 2016 08:04:40 GMT
Repository: james-project
Updated Branches:
  refs/heads/master ab37c84f0 -> 0b8afcf35


JAMES-1741 DNSJava was not well initialized


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

Branch: refs/heads/master
Commit: 0b8afcf3593bf8a226af74d77f72b9241a9b519a
Parents: ab37c84
Author: Benoit Tellier <btellier@linagora.com>
Authored: Sat May 21 15:13:04 2016 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Sat May 21 15:15:02 2016 +0700

----------------------------------------------------------------------
 .../java/org/apache/james/modules/server/DNSServiceModule.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/0b8afcf3/server/container/guice/guice-common/src/main/java/org/apache/james/modules/server/DNSServiceModule.java
----------------------------------------------------------------------
diff --git a/server/container/guice/guice-common/src/main/java/org/apache/james/modules/server/DNSServiceModule.java
b/server/container/guice/guice-common/src/main/java/org/apache/james/modules/server/DNSServiceModule.java
index d987dbf..15501a9 100644
--- a/server/container/guice/guice-common/src/main/java/org/apache/james/modules/server/DNSServiceModule.java
+++ b/server/container/guice/guice-common/src/main/java/org/apache/james/modules/server/DNSServiceModule.java
@@ -42,7 +42,8 @@ public class DNSServiceModule extends AbstractModule {
 
     @Override
     protected void configure() {
-        bind(DNSService.class).to(DNSJavaService.class).in(Scopes.SINGLETON);
+        bind(DNSJavaService.class).in(Scopes.SINGLETON);
+        bind(DNSService.class).to(DNSJavaService.class);
         Multibinder.newSetBinder(binder(), ConfigurationPerformer.class).addBinding().to(DNSServiceConfigurationPerformer.class);
     }
 


---------------------------------------------------------------------
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