public class RefreshEventListener extends Object
refresh
when a RefreshEvent
is received.
Only responds to RefreshEvent
after receiving an ApplicationReadyEvent
as the RefreshEvent's might come to early in the application lifecycle.Constructor and Description |
---|
RefreshEventListener(ContextRefresher refresh) |
Modifier and Type | Method and Description |
---|---|
void |
handle(org.springframework.boot.context.event.ApplicationReadyEvent event) |
void |
handle(RefreshEvent event) |
public RefreshEventListener(ContextRefresher refresh)
@EventListener public void handle(org.springframework.boot.context.event.ApplicationReadyEvent event)
@EventListener public void handle(RefreshEvent event)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.