Class AzureServiceConfigurationBase
- java.lang.Object
-
- com.azure.spring.cloud.autoconfigure.AzureServiceConfigurationBase
-
- Direct Known Subclasses:
AzureAppConfigurationAutoConfiguration,AzureCosmosAutoConfiguration,AzureEventHubsAutoConfiguration,AzureKeyVaultCertificateAutoConfiguration,AzureKeyVaultSecretAutoConfiguration,AzureServiceBusAutoConfiguration,AzureStorageBlobAutoConfiguration,AzureStorageFileShareAutoConfiguration,AzureStorageQueueAutoConfiguration,AzureTokenCredentialAutoConfiguration
@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties public abstract class AzureServiceConfigurationBase extends Object
A configuration base class for all Azure SDK configuration.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAzureServiceConfigurationBase(AzureGlobalProperties azureProperties)Create an instance ofAzureServiceConfigurationBase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AzureGlobalPropertiesgetAzureGlobalProperties()Get theAzureGlobalProperties.protected <T extends com.azure.spring.cloud.core.properties.AzureProperties>
TloadProperties(AzureGlobalProperties source, T target)Load the default value to an Azure Service properties from the global Azure properties.
-
-
-
Constructor Detail
-
AzureServiceConfigurationBase
protected AzureServiceConfigurationBase(AzureGlobalProperties azureProperties)
Create an instance ofAzureServiceConfigurationBase.- Parameters:
azureProperties- theAzurePropertiesobject.
-
-
Method Detail
-
loadProperties
protected <T extends com.azure.spring.cloud.core.properties.AzureProperties> T loadProperties(AzureGlobalProperties source, T target)
Load the default value to an Azure Service properties from the global Azure properties.- Type Parameters:
T- The type of the properties of an Azure Service.- Parameters:
source- The global Azure properties.target- The properties of an Azure Service, such as Event Hubs properties. Some common components of the service's properties have default value as set to the global properties. For example, the proxy of the Event Hubs properties takes the proxy set to the global Azure properties as default.- Returns:
- The Azure Service's properties.
-
getAzureGlobalProperties
protected AzureGlobalProperties getAzureGlobalProperties()
Get theAzureGlobalProperties.- Returns:
- the global properties.
-
-