This is an automated email from the ASF dual-hosted git repository. matthieu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit aab25b310ea1614c0b14ff757057cb7deb7f7971 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Wed Apr 29 11:48:13 2020 +0700 [REFACTORING] Remove unused DefaultQuotaModule --- .../james/modules/mailbox/DefaultQuotaModule.java | 49 ---------------------- 1 file changed, 49 deletions(-) diff --git a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java deleted file mode 100644 index 46c8b7c..0000000 --- a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************** - * Licensed to the Apache Software Foundation (ASF) under one * - * or more contributor license agreements. See the NOTICE file * - * distributed with this work for additional information * - * regarding copyright ownership. The ASF licenses this file * - * to you under the Apache License, Version 2.0 (the * - * "License"); you may not use this file except in compliance * - * with the License. You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, * - * software distributed under the License is distributed on an * - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * - * KIND, either express or implied. See the License for the * - * specific language governing permissions and limitations * - * under the License. * - ****************************************************************/ - -package org.apache.james.modules.mailbox; - -import org.apache.james.mailbox.quota.MaxQuotaManager; -import org.apache.james.mailbox.quota.QuotaManager; -import org.apache.james.mailbox.quota.QuotaRootDeserializer; -import org.apache.james.mailbox.quota.QuotaRootResolver; -import org.apache.james.mailbox.quota.UserQuotaRootResolver; -import org.apache.james.mailbox.store.quota.DefaultUserQuotaRootResolver; -import org.apache.james.mailbox.store.quota.NoMaxQuotaManager; -import org.apache.james.mailbox.store.quota.NoQuotaManager; - -import com.google.inject.AbstractModule; -import com.google.inject.Scopes; - -public class DefaultQuotaModule extends AbstractModule { - - @Override - protected void configure() { - bind(NoQuotaManager.class).in(Scopes.SINGLETON); - bind(DefaultUserQuotaRootResolver.class).in(Scopes.SINGLETON); - bind(NoMaxQuotaManager.class).in(Scopes.SINGLETON); - - bind(MaxQuotaManager.class).toInstance(new NoMaxQuotaManager()); - bind(QuotaManager.class).to(NoQuotaManager.class); - bind(QuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class); - bind(QuotaRootDeserializer.class).to(DefaultUserQuotaRootResolver.class); - bind(UserQuotaRootResolver.class).to(DefaultUserQuotaRootResolver.class); - } - -} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org