Class 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
    • Constructor Detail

      • KeyVaultEnvironmentPostProcessor

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

      • 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.