Class AzureStorageBlobAutoConfiguration


  • @ConditionalOnClass(com.azure.storage.blob.BlobServiceClientBuilder.class)
    @ConditionalOnProperty(value="spring.cloud.azure.storage.blob.enabled",
                           havingValue="true",
                           matchIfMissing=true)
    @ConditionalOnAnyProperty(prefix="spring.cloud.azure.storage.blob",
                              name={"account-name","endpoint","connection-string"})
    public class AzureStorageBlobAutoConfiguration
    extends AzureServiceConfigurationBase
    Auto-configuration for Azure Storage Blob support.
    Since:
    4.0.0
    • Method Detail

      • blobServiceAsyncClient

        @Bean
        @ConditionalOnMissingBean
        public com.azure.storage.blob.BlobServiceAsyncClient blobServiceAsyncClient​(@Qualifier("springCloudAzureStorageBlobClientBuilder")
                                                                                    com.azure.storage.blob.BlobServiceClientBuilder builder)
        Autoconfigure the BlobServiceAsyncClient instance.
        Parameters:
        builder - the BlobServiceClientBuilder to build the instance.
        Returns:
        the blob service async client.
      • blobServiceClient

        @Bean
        @ConditionalOnMissingBean
        public com.azure.storage.blob.BlobServiceClient blobServiceClient​(@Qualifier("springCloudAzureStorageBlobClientBuilder")
                                                                          com.azure.storage.blob.BlobServiceClientBuilder builder)
        Autoconfigure the BlobServiceClient instance.
        Parameters:
        builder - the BlobServiceClientBuilder to build the instance.
        Returns:
        the blob service client.