This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit cd475f89b9eeec2f42b23a26be7cd160735b578a Author: Rene Cordier <[email protected]> AuthorDate: Mon Oct 5 15:01:25 2020 +0700 JAMES-3028 No need to bind anymore awsS3AuthConfiguration and region as using directly S3BlobStoreConfiguration in S3BlobStoreDAO --- .../james/modules/objectstorage/S3BlobStoreModule.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/server/container/guice/blob-s3-guice/src/main/java/org/apache/james/modules/objectstorage/S3BlobStoreModule.java b/server/container/guice/blob-s3-guice/src/main/java/org/apache/james/modules/objectstorage/S3BlobStoreModule.java index ad70751..c6494e2 100644 --- a/server/container/guice/blob-s3-guice/src/main/java/org/apache/james/modules/objectstorage/S3BlobStoreModule.java +++ b/server/container/guice/blob-s3-guice/src/main/java/org/apache/james/modules/objectstorage/S3BlobStoreModule.java @@ -25,8 +25,6 @@ import javax.inject.Singleton; import org.apache.commons.configuration2.Configuration; import org.apache.commons.configuration2.ex.ConfigurationException; -import org.apache.james.blob.objectstorage.aws.AwsS3AuthConfiguration; -import org.apache.james.blob.objectstorage.aws.Region; import org.apache.james.blob.objectstorage.aws.S3BlobStoreConfiguration; import org.apache.james.blob.objectstorage.aws.S3BlobStoreDAO; import org.apache.james.modules.mailbox.ConfigurationComponent; @@ -51,18 +49,6 @@ public class S3BlobStoreModule extends AbstractModule { } } - @Provides - @Singleton - private AwsS3AuthConfiguration awsS3AuthConfiguration(S3BlobStoreConfiguration s3BlobStoreConfiguration) { - return s3BlobStoreConfiguration.getSpecificAuthConfiguration(); - } - - @Provides - @Singleton - private Region region(S3BlobStoreConfiguration s3BlobStoreConfiguration) { - return s3BlobStoreConfiguration.getRegion(); - } - @ProvidesIntoSet InitializationOperation startS3BlobStoreDAO(S3BlobStoreDAO s3BlobStoreDAO) { return InitilizationOperationBuilder --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
