public class ApplicationContextInitializedEvent extends SpringApplicationEvent
SpringApplication is starting up and the
ApplicationContext is prepared and ApplicationContextInitializers have been
called but before any bean definitions are loaded.| Constructor and Description |
|---|
ApplicationContextInitializedEvent(SpringApplication application,
java.lang.String[] args,
org.springframework.context.ConfigurableApplicationContext context)
Create a new
ApplicationContextInitializedEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
getArgs, getSpringApplicationpublic ApplicationContextInitializedEvent(SpringApplication application, java.lang.String[] args, org.springframework.context.ConfigurableApplicationContext context)
ApplicationContextInitializedEvent instance.application - the current applicationargs - the arguments the application is running withcontext - the context that has been initialized