类 RestartApplicationListener
- java.lang.Object
- org.springframework.boot.devtools.restart.RestartApplicationListener
- 所有已实现的接口:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
,org.springframework.core.Ordered
public class RestartApplicationListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.core.Ordered
ApplicationListener
to initialize theRestarter
.- 从以下版本开始:
- 1.3.0
- 另请参阅:
Restarter
构造器概要
构造器 构造器 说明 RestartApplicationListener()
构造器详细资料
RestartApplicationListener
public RestartApplicationListener()
方法详细资料
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
getOrder
public int getOrder()
- 指定者:
getOrder
在接口中org.springframework.core.Ordered
setOrder
public void setOrder(int order)
Set the order of the listener.- 参数:
order
- the order of the listener