public class ApplicationReadyEvent extends SpringApplicationEvent
SpringApplication
itself, but beware of modifying its internal state since all initialization steps will
have been completed by then.ApplicationFailedEvent
,
Serialized FormConstructor and Description |
---|
ApplicationReadyEvent(SpringApplication application,
java.lang.String[] args,
org.springframework.context.ConfigurableApplicationContext context)
Create a new
ApplicationReadyEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext()
Return the application context.
|
getArgs, getSpringApplication
public ApplicationReadyEvent(SpringApplication application, java.lang.String[] args, org.springframework.context.ConfigurableApplicationContext context)
ApplicationReadyEvent
instance.application
- the current applicationargs
- the arguments the application is running withcontext
- the context that was being created