Class BootstrapSpringApplicationListener
java.lang.Object
com.ulisesbocchio.jasyptspringboot.configuration.BootstrapSpringApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
@Order(2147483647)
public class BootstrapSpringApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
We inject a special property source within EnvironmentInitializer in the custom environment.
This allows BootstrapSpringApplicationListener to detect the custom environment on a bootstrap (cloud) environment
and initialize it also, so all bootstrap property sources can be encryptable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
BOOTSTRAP_PROPERTY_SOURCE_NAME
- See Also:
-
-
Constructor Details
-
BootstrapSpringApplicationListener
public BootstrapSpringApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>
-