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.source
Constructor and Description |
---|
ApplicationContextInitializedEvent(SpringApplication application,
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, getSpringApplication
getSource, toString
public ApplicationContextInitializedEvent(SpringApplication application, 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 initializedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.