Class RestartApplicationListener
- java.lang.Object
- org.springframework.boot.devtools.restart.RestartApplicationListener
- All Implemented Interfaces:
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
.- Since:
- 1.3.0
- See Also:
Restarter
Constructor Summary
Constructors Constructor Description RestartApplicationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
void
setOrder(int order)
Set the order of the listener.
Constructor Detail
RestartApplicationListener
public RestartApplicationListener()
Method Detail
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
setOrder
public void setOrder(int order)
Set the order of the listener.- Parameters:
order
- the order of the listener