Class KeyVaultEnvironmentPostProcessor

java.lang.Object
com.azure.spring.cloud.autoconfigure.keyvault.environment.KeyVaultEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered

public class KeyVaultEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
Leverage EnvironmentPostProcessor to insert KeyVaultPropertySources into ConfigurableEnvironment. KeyVaultPropertySources are constructed according to AzureKeyVaultSecretProperties,
Since:
4.0.0
  • Field Details

  • Constructor Details

    • KeyVaultEnvironmentPostProcessor

      public KeyVaultEnvironmentPostProcessor(org.apache.commons.logging.Log logger)
      Creates a new instance of KeyVaultEnvironmentPostProcessor.
      Parameters:
      logger - The logger used in this class.
    • KeyVaultEnvironmentPostProcessor

      public KeyVaultEnvironmentPostProcessor()
      Construct a KeyVaultEnvironmentPostProcessor instance with a new DeferredLog.
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Construct KeyVaultPropertySources according to AzureKeyVaultSecretProperties, then insert these KeyVaultPropertySources into ConfigurableEnvironment.
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor
      Parameters:
      environment - the environment.
      application - the application.
    • getOrder

      public int getOrder()
      Get the order value of this object.
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Returns:
      The order value.