This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit d071801040a768f273a5fbb3533f9625c8215f18 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Thu Feb 21 13:24:43 2019 +0700 JAMES-2668 Add missing @Singleton scopes in Cassandra RRT DAOs --- .../james/modules/data/CassandraRecipientRewriteTableModule.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraRecipientRewriteTableModule.java b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraRecipientRewriteTableModule.java index 22b48e8..f7d61f6 100644 --- a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraRecipientRewriteTableModule.java +++ b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraRecipientRewriteTableModule.java @@ -24,8 +24,10 @@ import org.apache.commons.configuration.ConfigurationException; import org.apache.james.backends.cassandra.components.CassandraModule; import org.apache.james.lifecycle.api.Configurable; import org.apache.james.rrt.api.RecipientRewriteTable; +import org.apache.james.rrt.cassandra.CassandraMappingsSourcesDAO; import org.apache.james.rrt.cassandra.CassandraRRTModule; import org.apache.james.rrt.cassandra.CassandraRecipientRewriteTable; +import org.apache.james.rrt.cassandra.CassandraRecipientRewriteTableDAO; import org.apache.james.server.core.configuration.ConfigurationProvider; import org.apache.james.utils.ConfigurationPerformer; @@ -41,6 +43,8 @@ public class CassandraRecipientRewriteTableModule extends AbstractModule { @Override public void configure() { bind(CassandraRecipientRewriteTable.class).in(Scopes.SINGLETON); + bind(CassandraRecipientRewriteTableDAO.class).in(Scopes.SINGLETON); + bind(CassandraMappingsSourcesDAO.class).in(Scopes.SINGLETON); bind(RecipientRewriteTable.class).to(CassandraRecipientRewriteTable.class); Multibinder<CassandraModule> cassandraDataDefinitions = Multibinder.newSetBinder(binder(), CassandraModule.class); cassandraDataDefinitions.addBinding().toInstance(CassandraRRTModule.MODULE); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org