Class ProcessStartedEventListener
- java.lang.Object
-
- com.broadleafcommerce.search.index.core.event.listener.ProcessStartedEventListener
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<ProcessStartedEvent>
@Order(-2147483638) public class ProcessStartedEventListener extends Object implements org.springframework.context.ApplicationListener<ProcessStartedEvent>
Listens forProcessStartedEvent
. This simply initializes the local ProcessStateHolder if it has not been initialized. This will only be the case when we are running in distributed VMs.- Author:
- Kelly Tisdell
-
-
Constructor Summary
Constructors Constructor Description ProcessStartedEventListener(ProcessStateService processStateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProcessStateService
getProcessStateService()
void
onApplicationEvent(ProcessStartedEvent event)
-
-
-
Constructor Detail
-
ProcessStartedEventListener
public ProcessStartedEventListener(ProcessStateService processStateService)
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(ProcessStartedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ProcessStartedEvent>
-
getProcessStateService
protected ProcessStateService getProcessStateService()
-
-