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 voidChange the environment according to the cloud type set.static com.azure.core.management.AzureEnvironmentdecideAzureManagementEnvironment(AzureProfileOptionsProvider.CloudType cloudType, com.azure.core.management.AzureEnvironment defaultManagementEnvironment) Decide the correspondingAzureEnvironmentby theAzureProfileOptionsProvider.CloudType.Get the Azure environment.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AzureProfileOptionsProvider.ProfileOptions
getCloudType, getSubscriptionId, getTenantId
-
Constructor Details
-
AzureProfileOptionsAdapter
public AzureProfileOptionsAdapter()Creates an instance ofAzureProfileOptionsAdapter.
-
-
Method Details
-
changeEnvironmentAccordingToCloud
protected void changeEnvironmentAccordingToCloud()Change the environment according to the cloud type set. -
getEnvironment
Get the Azure environment.- Specified by:
getEnvironmentin 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 correspondingAzureEnvironmentby theAzureProfileOptionsProvider.CloudType.- Parameters:
cloudType- The provided cloud type.defaultManagementEnvironment- The default managementAzureEnvironment.- Returns:
- The corresponding
AzureEnvironment.
-