JAMES-2344 reorder guice bindings

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

Branch: refs/heads/master
Commit: 130f9b95f6aa1721af5d5bfa65f233a7275d1f82
Parents: 5c80ce2
Author: Matthieu Baechler <matth...@apache.org>
Authored: Fri Mar 9 14:56:28 2018 +0100
Committer: Matthieu Baechler <matth...@apache.org>
Committed: Fri Mar 9 14:57:12 2018 +0100

----------------------------------------------------------------------
 .../james/modules/mailbox/CassandraQuotaModule.java       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/130f9b95/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraQuotaModule.java
----------------------------------------------------------------------
diff --git 
a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraQuotaModule.java
 
b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraQuotaModule.java
index 23aa2ec..27da710 100644
--- 
a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraQuotaModule.java
+++ 
b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/modules/mailbox/CassandraQuotaModule.java
@@ -39,17 +39,17 @@ public class CassandraQuotaModule extends AbstractModule {
 
     @Override
     protected void configure() {
-        bind(DefaultUserQuotaRootResolver.class).in(Scopes.SINGLETON);
+        bind(CassandraCurrentQuotaManager.class).in(Scopes.SINGLETON);
         bind(CassandraPerUserMaxQuotaManager.class).in(Scopes.SINGLETON);
+        bind(DefaultUserQuotaRootResolver.class).in(Scopes.SINGLETON);
         bind(StoreQuotaManager.class).in(Scopes.SINGLETON);
-        bind(CassandraCurrentQuotaManager.class).in(Scopes.SINGLETON);
 
-        bind(QuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class);
-        
bind(UserQuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class);
+        bind(CurrentQuotaManager.class).to(CassandraCurrentQuotaManager.class);
         bind(MaxQuotaManager.class).to(CassandraPerUserMaxQuotaManager.class);
         bind(QuotaManager.class).to(StoreQuotaManager.class);
-        bind(CurrentQuotaManager.class).to(CassandraCurrentQuotaManager.class);
+        bind(QuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class);
         
bind(StoreCurrentQuotaManager.class).to(CassandraCurrentQuotaManager.class);
+        
bind(UserQuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class);
 
         Multibinder<CassandraModule> cassandraDataDefinitions = 
Multibinder.newSetBinder(binder(), CassandraModule.class);
         
cassandraDataDefinitions.addBinding().to(org.apache.james.mailbox.cassandra.modules.CassandraQuotaModule.class);


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to