Class ApplicationStartingEvent

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

public class ApplicationStartingEvent extends SpringApplicationEvent
Event published as early as conceivably possible as soon as a SpringApplication has been started - before the Environment or ApplicationContext is available, but after the ApplicationListeners have been registered. The source of the event is the SpringApplication itself, but beware of using its internal state too much at this early stage since it might be modified later in the lifecycle.
Since:
1.5.0
See Also:
  • Constructor Details

  • Method Details

    • getBootstrapContext

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