james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [1/2] james-project git commit: MAILBOX−309 Bind CassandraAttachmentMessageIdDAO as SINGLETON
Date Mon, 02 Oct 2017 01:59:44 GMT
Repository: james-project
Updated Branches:
  refs/heads/master a2f22af4c -> f458495a0


MAILBOX−309 Bind CassandraAttachmentMessageIdDAO as SINGLETON

This avoid re-preparing the queries defined in this DAO


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

Branch: refs/heads/master
Commit: 8d74d434bce899ef2ce2eabf2b0e2a3d72649571
Parents: a2f22af
Author: benwa <btellier@linagora.com>
Authored: Fri Sep 29 17:55:35 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Fri Sep 29 17:55:35 2017 +0700

----------------------------------------------------------------------
 .../org/apache/james/modules/mailbox/CassandraMailboxModule.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/8d74d434/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraMailboxModule.java
----------------------------------------------------------------------
diff --git a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraMailboxModule.java
b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraMailboxModule.java
index 75d4bd0..278ba4b 100644
--- a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraMailboxModule.java
+++ b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraMailboxModule.java
@@ -36,6 +36,7 @@ import org.apache.james.mailbox.cassandra.ids.CassandraId;
 import org.apache.james.mailbox.cassandra.ids.CassandraMessageId;
 import org.apache.james.mailbox.cassandra.mail.CassandraAttachmentDAO;
 import org.apache.james.mailbox.cassandra.mail.CassandraAttachmentDAOV2;
+import org.apache.james.mailbox.cassandra.mail.CassandraAttachmentMessageIdDAO;
 import org.apache.james.mailbox.cassandra.mail.CassandraBlobsDAO;
 import org.apache.james.mailbox.cassandra.mail.CassandraMailboxMapper;
 import org.apache.james.mailbox.cassandra.mail.CassandraMessageDAO;
@@ -99,6 +100,7 @@ public class CassandraMailboxModule extends AbstractModule {
         bind(CassandraMessageDAO.class).in(Scopes.SINGLETON);
         bind(CassandraBlobsDAO.class).in(Scopes.SINGLETON);
         bind(CassandraAttachmentDAO.class).in(Scopes.SINGLETON);
+        bind(CassandraAttachmentMessageIdDAO.class).in(Scopes.SINGLETON);
         bind(CassandraAttachmentDAOV2.class).in(Scopes.SINGLETON);
         bind(StoreBlobManager.class).in(Scopes.SINGLETON);
 


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