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 Details

  • Constructor Details

    • BootstrapSpringApplicationListener

      public BootstrapSpringApplicationListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>