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 Details

    • DefaultBlobStorageConfigurationProvider

      public DefaultBlobStorageConfigurationProvider(@Parameter String name)
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • getRootClass

      @NonNull public @NonNull Class<?> getRootClass()
      Description copied from interface: RootClassConfigurationProvider
      Returns the class of the Root Instance. Root Instances
      Specified by:
      getRootClass in interface RootClassConfigurationProvider
      Returns:
      Class for the Root Instance.
    • setRootClass

      public void setRootClass(@NonNull @NonNull Class<?> rootClass)
      Class of the Root Instance. Root Instances
      Parameters:
      rootClass - Class for the Root Instance.
    • getBlobClientName

      @NonNull public @NonNull Optional<String> 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 interface BlobStorageConfigurationProvider
      Returns:
      Returns the name qualifier of the Azure Storage Container to use.
    • setBlobClientName

      public void setBlobClientName(@Nullable @Nullable String blobClientName)
      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

      @NonNull public @NonNull String getContainerName()
      Specified by:
      getContainerName in interface BlobStorageConfigurationProvider
      Returns:
      Returns the name of the blob container to use.
    • setContainerName

      public void setContainerName(@NonNull @NonNull String containerName)
      Parameters:
      containerName - Name of the container to use.