Rename 'running' to 'ready' for ApplicationStartup

Rename 'spring.boot.application.running' to
'spring.boot.application.ready' to better align with `ReadinessState`.

Closes gh-28080
pull/28141/head
Phillip Webb 3 years ago
parent 0b5d178e5b
commit 528ced4f0d

@ -79,7 +79,7 @@ class SpringApplicationRunListeners {
}
void ready(ConfigurableApplicationContext context, Duration timeTaken) {
doWithListeners("spring.boot.application.running", (listener) -> listener.ready(context, timeTaken));
doWithListeners("spring.boot.application.ready", (listener) -> listener.ready(context, timeTaken));
}
void failed(ConfigurableApplicationContext context, Throwable exception) {

@ -1173,7 +1173,7 @@ class SpringApplicationTests {
verify(applicationStartup).start("spring.boot.application.context-prepared");
verify(applicationStartup).start("spring.boot.application.context-loaded");
verify(applicationStartup).start("spring.boot.application.started");
verify(applicationStartup).start("spring.boot.application.running");
verify(applicationStartup).start("spring.boot.application.ready");
long startCount = mockingDetails(applicationStartup).getInvocations().stream()
.filter((invocation) -> invocation.getMethod().toString().contains("start(")).count();
long endCount = mockingDetails(startupStep).getInvocations().stream()

Loading…
Cancel
Save