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(SpringApplication application,
String[] args)
Create a new
ApplicationStartingEvent instance. |
getArgs, getSpringApplication
getTimestamp
getSource, toString
public ApplicationStartingEvent(SpringApplication application, String[] args)
ApplicationStartingEvent
instance.application
- the current applicationargs
- the arguments the application is running with