public class ApplicationStartingEvent extends SpringApplicationEvent
SpringApplicationhas been started - before the
ApplicationContextis available, but after the
ApplicationListeners have been registered. The source of the event is the
SpringApplicationitself, but beware of using its internal state too much at this early stage since it might be modified later in the lifecycle.
|Constructor and Description|
since 2.4.0 for removal in 2.6.0 in favor of
|Modifier and Type||Method and Description|
Return the bootstap context.
@Deprecated public ApplicationStartingEvent(SpringApplication application, String args)
ApplicationStartingEvent(ConfigurableBootstrapContext, SpringApplication, String)
application- the current application
args- the arguments the application is running with
public ConfigurableBootstrapContext getBootstrapContext()