Package io.micronaut.eclipsestore.azure
Class DefaultBlobStorageConfigurationProvider
java.lang.Object
io.micronaut.eclipsestore.azure.DefaultBlobStorageConfigurationProvider
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,BlobStorageConfigurationProvider
,RootClassConfigurationProvider
@EachProperty("eclipsestore.blob.storage")
public class DefaultBlobStorageConfigurationProvider
extends Object
implements BlobStorageConfigurationProvider
- Since:
- 1.6.0
- Author:
- Simon Frauenschuh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe name qualifier of the defined Azure Storage Container to use.@NonNull String
@NonNull String
getName()
@NonNull Class<?>
Returns the class of the Root Instance.void
setBlobClientName
(@Nullable String blobClientName) The name qualifier of the defined Storage Account client to use.void
setContainerName
(@NonNull String containerName) void
setRootClass
(@NonNull Class<?> rootClass) Class of the Root Instance.
-
Constructor Details
-
DefaultBlobStorageConfigurationProvider
-
-
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.
-
getBlobClientName
Description copied from interface:BlobStorageConfigurationProvider
The name qualifier of the defined Azure Storage Container 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:
getBlobClientName
in interfaceBlobStorageConfigurationProvider
- Returns:
- Returns the name qualifier of the Azure Storage Container to use.
-
setBlobClientName
The name qualifier of the defined Storage Account client 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:
blobClientName
- the name qualifier of the Storage Account Client to use
-
getContainerName
- Specified by:
getContainerName
in interfaceBlobStorageConfigurationProvider
- Returns:
- Returns the name of the blob container to use.
-
setContainerName
- Parameters:
containerName
- Name of the container to use.
-