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