Package io.micronaut.eclipsestore.s3
Class DefaultS3StorageConfigurationProvider
java.lang.Object
io.micronaut.eclipsestore.s3.DefaultS3StorageConfigurationProvider
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,RootClassConfigurationProvider
,S3StorageConfigurationProvider
@EachProperty("eclipsestore.s3.storage")
public class DefaultS3StorageConfigurationProvider
extends Object
implements S3StorageConfigurationProvider
- Since:
- 2.0.0
- Author:
- Tim Yates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
getName()
@NonNull Class<?>
Returns the class of the Root Instance.The name qualifier of the defined S3Client to use.void
setBucketName
(@NonNull String bucketName) void
setRootClass
(@NonNull Class<?> rootClass) Class of the Root Instance.void
setS3ClientName
(@Nullable String s3ClientName) The name qualifier of the defined S3Client to use.
-
Constructor Details
-
DefaultS3StorageConfigurationProvider
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
getRootClass
Description copied from interface:RootClassConfigurationProvider
Returns the class of the Root Instance. Root Instances- Specified by:
getRootClass
in interfaceRootClassConfigurationProvider
- Returns:
- Class for the Root Instance.
-
setRootClass
Class of the Root Instance. Root Instances- Parameters:
rootClass
- Class for the Root Instance.
-
getS3ClientName
Description copied from interface:S3StorageConfigurationProvider
The name qualifier of the defined S3Client to use. If unset, a client with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default client will be used.- Specified by:
getS3ClientName
in interfaceS3StorageConfigurationProvider
- Returns:
- Returns the name qualifier of the S3Client to use.
-
setS3ClientName
The name qualifier of the defined S3Client to use. If unset, a client with the same name as the storage will be used. If there is no bean with a name qualifier matching the storage name, the default client will be used.- Parameters:
s3ClientName
- the name qualifier of the S3Client to use
-
getBucketName
- Specified by:
getBucketName
in interfaceS3StorageConfigurationProvider
- Returns:
- Returns the name of the bucket to use.
-
setBucketName
- Parameters:
bucketName
- Name of the bucket to use.
-