Class AzureStorageBlobAutoConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.storage.blob.AzureStorageBlobAutoConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties @ConditionalOnClass(com.azure.storage.blob.BlobServiceClientBuilder.class) @ConditionalOnProperty(value={"spring.cloud.azure.storage.blob.enabled","spring.cloud.azure.storage.enabled"}, havingValue="true", matchIfMissing=true) @ConditionalOnAnyProperty(prefixes={"spring.cloud.azure.storage.blob","spring.cloud.azure.storage"}, name={"account-name","endpoint","connection-string"}) @Import(AzureStorageConfiguration.class) public class AzureStorageBlobAutoConfiguration extends Object
Auto-configuration for Azure Storage Blob support.
Since:
4.0.0
  • Constructor Details

    • AzureStorageBlobAutoConfiguration

      public AzureStorageBlobAutoConfiguration()
  • Method Details

    • 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.