Class RestartApplicationListener
java.lang.Object
org.springframework.boot.devtools.restart.RestartApplicationListener
- All Implemented Interfaces:
EventListener, ApplicationListener<ApplicationEvent>, Ordered
public class RestartApplicationListener
extends Object
implements ApplicationListener<ApplicationEvent>, Ordered
ApplicationListener to initialize the Restarter.- Since:
- 1.3.0
- Author:
- Phillip Webb, Andy Wilkinson
- See Also:
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
RestartApplicationListener
public RestartApplicationListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ApplicationEvent>
-
getOrder
-
setOrder
public void setOrder(int order) Set the order of the listener.- Parameters:
order- the order of the listener
-