Class EncryptableLoggingEnvironmentListener

java.lang.Object
com.ulisesbocchio.jasyptspringboot.configuration.EncryptableLoggingEnvironmentListener
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor

@Order(-2147483635) public class EncryptableLoggingEnvironmentListener extends Object implements org.springframework.boot.env.EnvironmentPostProcessor
Needs to run after ConfigDataEnvironmentPostProcessor and org.springframework.cloud.bootstrap.BootstrapConfigFileApplicationListener This listener detects the custom environment created by EnvironmentInitializer and re-initializes the logging environment property sources which would have been populated without the encryptable wrapper. The EnableEncryptablePropertiesBeanFactoryPostProcessor then effectively re-initializes the logging LoggingSystem
See Also:
  • Field Details

  • Constructor Details

    • EncryptableLoggingEnvironmentListener

      public EncryptableLoggingEnvironmentListener()
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor