public class ApplicationStartedEvent extends SpringApplicationEvent
application
and command line
runners have been called.Constructor and Description |
---|
ApplicationStartedEvent(SpringApplication application,
java.lang.String[] args,
org.springframework.context.ConfigurableApplicationContext context)
Create a new
ApplicationStartedEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
getArgs, getSpringApplication
public ApplicationStartedEvent(SpringApplication application, java.lang.String[] args, org.springframework.context.ConfigurableApplicationContext context)
ApplicationStartedEvent
instance.application
- the current applicationargs
- the arguments the application is running withcontext
- the context that was being created