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 aSpringApplication
has been started - before theEnvironment
orApplicationContext
is available, but after theApplicationListener
s have been registered. The source of the event is theSpringApplication
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:
- Serialized Form
Field Summary
Fields inherited from class java.util.EventObject
source
Constructor Summary
Constructors Constructor Description ApplicationStartingEvent(SpringApplication application, String[] args)
Create a newApplicationStartingEvent
instance.
Method Summary
Methods inherited from class org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
Methods inherited from class java.util.EventObject
getSource, toString
Constructor Detail
ApplicationStartingEvent
public ApplicationStartingEvent(SpringApplication application, String[] args)
Create a newApplicationStartingEvent
instance.- Parameters:
application
- the current applicationargs
- the arguments the application is running with