@Configuration @ConditionalOnMissingBean(value=com.microsoft.azure.storage.CloudStorageAccount.class) @EnableConfigurationProperties(value=StorageProperties.class) @ConditionalOnProperty(prefix="azure.storage", value="connection-string") public class StorageAutoConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private StorageProperties |
properties |
| Constructor and Description |
|---|
StorageAutoConfiguration(StorageProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.azure.storage.CloudStorageAccount |
cloudStorageAccount()
Declare CloudStorageAccount bean.
|
private com.microsoft.azure.storage.CloudStorageAccount |
createCloudStorageAccount()
Helper function for creating CloudStorageAccount instance from storage connection string.
|
private static final org.slf4j.Logger LOG
private final StorageProperties properties
public StorageAutoConfiguration(StorageProperties properties)
@Bean
@Scope(value="prototype")
public com.microsoft.azure.storage.CloudStorageAccount cloudStorageAccount()
throws URISyntaxException,
InvalidKeyException
URISyntaxExceptionInvalidKeyExceptionprivate com.microsoft.azure.storage.CloudStorageAccount createCloudStorageAccount()
throws URISyntaxException,
InvalidKeyException
URISyntaxExceptionInvalidKeyExceptionCopyright © 2018 Microsoft. All rights reserved.