public class ApplicationPreparedEvent extends SpringApplicationEvent
SpringApplication
is starting up and the
ApplicationContext
is fully prepared but not refreshed. The bean definitions
will be loaded and the Environment
is ready for use at this stage.source
Constructor and Description |
---|
ApplicationPreparedEvent(SpringApplication application,
String[] args,
org.springframework.context.ConfigurableApplicationContext context)
Create a new
ApplicationPreparedEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
getArgs, getSpringApplication
getSource, toString
public ApplicationPreparedEvent(SpringApplication application, String[] args, org.springframework.context.ConfigurableApplicationContext context)
ApplicationPreparedEvent
instance.application
- the current applicationargs
- the arguments the application is running withcontext
- the ApplicationContext about to be refreshedCopyright © 2020 Pivotal Software, Inc.. All rights reserved.