Class AzureServiceConfigurationBase
java.lang.Object
com.azure.spring.cloud.autoconfigure.AzureServiceConfigurationBase
- Direct Known Subclasses:
AzureAppConfigurationAutoConfiguration
,AzureCosmosAutoConfiguration
,AzureEventHubsAutoConfiguration
,AzureKeyVaultConfiguration
,AzureServiceBusAutoConfiguration
,AzureStorageConfiguration
,AzureTokenCredentialAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties
public abstract class AzureServiceConfigurationBase
extends Object
A configuration base class for all Azure SDK configuration.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AzureServiceConfigurationBase
(AzureGlobalProperties azureProperties) Create an instance ofAzureServiceConfigurationBase
. -
Method Summary
Modifier and TypeMethodDescriptionprotected AzureGlobalProperties
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 Details
-
AzureServiceConfigurationBase
Create an instance ofAzureServiceConfigurationBase
.- Parameters:
azureProperties
- theAzureProperties
object.
-
-
Method Details
-
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
Get theAzureGlobalProperties
.- Returns:
- the global properties.
-