public class ApplicationStartingEvent extends SpringApplicationEvent
SpringApplication
has been started - before the Environment
or ApplicationContext
is
available, but after the ApplicationListener
s 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.source
Constructor and Description |
---|
ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext,
SpringApplication application,
String[] args)
Create a new
ApplicationStartingEvent instance. |
ApplicationStartingEvent(SpringApplication application,
String[] args)
Deprecated.
since 2.4.0 for removal in 2.6.0 in favor of
ApplicationStartingEvent(ConfigurableBootstrapContext, SpringApplication, String[]) |
Modifier and Type | Method and Description |
---|---|
ConfigurableBootstrapContext |
getBootstrapContext()
Return the bootstap context.
|
getArgs, getSpringApplication
getTimestamp
getSource, toString
@Deprecated public ApplicationStartingEvent(SpringApplication application, String[] args)
ApplicationStartingEvent(ConfigurableBootstrapContext, SpringApplication, String[])
ApplicationStartingEvent
instance.application
- the current applicationargs
- the arguments the application is running withpublic ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args)
ApplicationStartingEvent
instance.bootstrapContext
- the bootstrap contextapplication
- the current applicationargs
- the arguments the application is running withpublic ConfigurableBootstrapContext getBootstrapContext()