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