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-1728 CassandraSieveRepository should be bound in scope SINGLETON
Date Tue, 26 Apr 2016 09:16:02 GMT
Repository: james-project
Updated Branches:
  refs/heads/master b2f2e187c -> 8049cde24


JAMES-1728 CassandraSieveRepository should be bound in scope 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/8049cde2
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/8049cde2
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/8049cde2

Branch: refs/heads/master
Commit: 8049cde24895b35c4f4bb26384bd529598357e9c
Parents: b2f2e18
Author: Benoit Tellier <btellier@linagora.com>
Authored: Tue Apr 26 14:41:47 2016 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Tue Apr 26 16:15:19 2016 +0700

----------------------------------------------------------------------
 .../apache/james/modules/data/CassandraSieveRepositoryModule.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/8049cde2/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraSieveRepositoryModule.java
----------------------------------------------------------------------
diff --git a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraSieveRepositoryModule.java
b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraSieveRepositoryModule.java
index 036aa99..9021a53 100644
--- a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraSieveRepositoryModule.java
+++ b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/data/CassandraSieveRepositoryModule.java
@@ -24,12 +24,14 @@ import org.apache.james.sieve.cassandra.CassandraSieveRepository;
 import org.apache.james.sieverepository.api.SieveRepository;
 
 import com.google.inject.AbstractModule;
+import com.google.inject.Scopes;
 import com.google.inject.multibindings.Multibinder;
 
 public class CassandraSieveRepositoryModule extends AbstractModule {
 
     @Override
     protected void configure() {
+        bind(CassandraSieveRepository.class).in(Scopes.SINGLETON);
         bind(SieveRepository.class).to(CassandraSieveRepository.class);
 
         Multibinder<CassandraModule> cassandraDataDefinitions = Multibinder.newSetBinder(binder(),
CassandraModule.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