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,
ConfigurableApplicationContext context)
Create a new
ApplicationContextInitializedEvent instance. |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
getArgs, getSpringApplication
getTimestamp
getSource, toString
public ApplicationContextInitializedEvent(SpringApplication application, String[] args, ConfigurableApplicationContext context)
ApplicationContextInitializedEvent
instance.application
- the current applicationargs
- the arguments the application is running withcontext
- the context that has been initializedpublic ConfigurableApplicationContext getApplicationContext()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.