Class AzureStorageFileShareAutoConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.storage.fileshare.AzureStorageFileShareAutoConfiguration

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

    • AzureStorageFileShareAutoConfiguration

      public AzureStorageFileShareAutoConfiguration()
  • Method Details

    • shareServiceClient

      @Bean @ConditionalOnMissingBean public com.azure.storage.file.share.ShareServiceClient shareServiceClient(com.azure.storage.file.share.ShareServiceClientBuilder builder)
      Autoconfigure the ShareServiceClient instance.
      Parameters:
      builder - the ShareServiceClientBuilder to build the instance.
      Returns:
      the share service client.
    • shareServiceAsyncClient

      @Bean @ConditionalOnMissingBean public com.azure.storage.file.share.ShareServiceAsyncClient shareServiceAsyncClient(com.azure.storage.file.share.ShareServiceClientBuilder builder)
      Autoconfigure the ShareServiceAsyncClient instance.
      Parameters:
      builder - the ShareServiceClientBuilder to build the instance.
      Returns:
      the share service async client.