Class RestartListener
- java.lang.Object
-
- org.springframework.cloud.context.restart.RestartListener
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
,org.springframework.context.event.SmartApplicationListener
,org.springframework.core.Ordered
public class RestartListener extends Object implements org.springframework.context.event.SmartApplicationListener
A listener that stores enough information about an application, as it starts, to be able to restart it later if needed.- Author:
- Dave Syer
-
-
Constructor Summary
Constructors Constructor Description RestartListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
void
onApplicationEvent(org.springframework.context.ApplicationEvent input)
boolean
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
boolean
supportsSourceType(Class<?> sourceType)
-
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- Specified by:
getOrder
in interfaceorg.springframework.context.event.SmartApplicationListener
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
- Specified by:
supportsEventType
in interfaceorg.springframework.context.event.SmartApplicationListener
-
supportsSourceType
public boolean supportsSourceType(Class<?> sourceType)
- Specified by:
supportsSourceType
in interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent input)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
-