Class StateMachineHandlerApplicationListener
java.lang.Object
org.springframework.statemachine.config.configuration.StateMachineHandlerApplicationListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class StateMachineHandlerApplicationListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Spring
ApplicationListener
which hooks to ContextRefreshedEvent
and tracks when was a last time context was refreshed.- Author:
- Janne Valkealahti
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the last refresh time.void
onApplicationEvent
(org.springframework.context.event.ContextRefreshedEvent event)
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
StateMachineHandlerApplicationListener
public StateMachineHandlerApplicationListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
getLastRefreshTime
Gets the last refresh time.- Returns:
- the last refresh time or
NULL
if not yet refreshed.
-