public class RefreshEventListener extends Object implements org.springframework.context.event.SmartApplicationListener
ContextRefresher.refresh() when a RefreshEvent is received. Only
responds to RefreshEvent after receiving an ApplicationReadyEvent, as
the RefreshEvents might come too 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) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
public RefreshEventListener(ContextRefresher refresh)
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType in interface org.springframework.context.event.SmartApplicationListenerpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>public void handle(org.springframework.boot.context.event.ApplicationReadyEvent event)
public void handle(RefreshEvent event)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.