Class AzureProfileOptionsAdapter
java.lang.Object
com.azure.spring.cloud.core.properties.profile.AzureProfileOptionsAdapter
- All Implemented Interfaces:
AzureProfileOptionsProvider.ProfileOptions
- Direct Known Subclasses:
AzureProfileProperties
public abstract class AzureProfileOptionsAdapter
extends Object
implements AzureProfileOptionsProvider.ProfileOptions
Skeleton implementation of a
AzureProfileOptionsProvider.ProfileOptions
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Change the environment according to the cloud type set.static com.azure.core.management.AzureEnvironment
decideAzureManagementEnvironment
(AzureProfileOptionsProvider.CloudType cloudType, com.azure.core.management.AzureEnvironment defaultManagementEnvironment) Decide the correspondingAzureEnvironment
by theAzureProfileOptionsProvider.CloudType
.Get the Azure environment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.spring.cloud.core.provider.AzureProfileOptionsProvider.ProfileOptions
getCloudType, getSubscriptionId, getTenantId
-
Constructor Details
-
AzureProfileOptionsAdapter
public AzureProfileOptionsAdapter()
-
-
Method Details
-
changeEnvironmentAccordingToCloud
protected void changeEnvironmentAccordingToCloud()Change the environment according to the cloud type set. -
getEnvironment
Get the Azure environment.- Specified by:
getEnvironment
in interfaceAzureProfileOptionsProvider.ProfileOptions
- Returns:
- The Azure environment.
-
decideAzureManagementEnvironment
public static com.azure.core.management.AzureEnvironment decideAzureManagementEnvironment(AzureProfileOptionsProvider.CloudType cloudType, com.azure.core.management.AzureEnvironment defaultManagementEnvironment) Decide the correspondingAzureEnvironment
by theAzureProfileOptionsProvider.CloudType
.- Parameters:
cloudType
- The provided cloud type.defaultManagementEnvironment
- The default managementAzureEnvironment
.- Returns:
- The corresponding
AzureEnvironment
.
-