Class ApplicationEnvironmentPreparedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
All Implemented Interfaces:
Serializable

public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
Event published when a SpringApplication is starting up and the Environment is first available for inspection and modification.
Since:
1.0.0
See Also:
  • Constructor Details

    • ApplicationEnvironmentPreparedEvent

      public ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, org.springframework.core.env.ConfigurableEnvironment environment)
      Parameters:
      bootstrapContext - the bootstrap context
      application - the current application
      args - the arguments the application is running with
      environment - the environment that was just created
  • Method Details

    • getBootstrapContext

      public ConfigurableBootstrapContext getBootstrapContext()
      Return the bootstrap context.
      Returns:
      the bootstrap context
      Since:
      2.4.0
    • getEnvironment

      public org.springframework.core.env.ConfigurableEnvironment getEnvironment()
      Return the environment.
      Returns:
      the environment