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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Field Details
-
BOOTSTRAP_PROPERTY_SOURCE_NAME
- See Also:
-
-
Constructor Details
-
EncryptableLoggingEnvironmentListener
public EncryptableLoggingEnvironmentListener()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-