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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.blob.BlobServiceAsyncClient
blobServiceAsyncClient
(com.azure.storage.blob.BlobServiceClientBuilder builder) Autoconfigure theBlobServiceAsyncClient
instance.com.azure.storage.blob.BlobServiceClient
blobServiceClient
(com.azure.storage.blob.BlobServiceClientBuilder builder) Autoconfigure theBlobServiceClient
instance.
-
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 theBlobServiceAsyncClient
instance.- Parameters:
builder
- theBlobServiceClientBuilder
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 theBlobServiceClient
instance.- Parameters:
builder
- theBlobServiceClientBuilder
to build the instance.- Returns:
- the blob service client.
-