Class RuleEngineBeforeCronJobStartEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<BeforeCronJobStartEvent>
de.hybris.platform.ruleengineservices.jobs.events.RuleEngineBeforeCronJobStartEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<BeforeCronJobStartEvent>
public class RuleEngineBeforeCronJobStartEventListener
extends AbstractEventListener<BeforeCronJobStartEvent>
Event listener for the
BeforeCronJobStartEvent type of events. In case of RuleEngineJobModel job type
performs removal of all of the TriggerModels associated to the given cron job.
The purpose is to ensure that once the cron job has been started, it should not be triggered anymore, as rule engine cron jobs\
are expected to fire only once.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelServiceprotected voidonEvent(BeforeCronJobStartEvent event) This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetModelService(ModelService modelService) Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
RuleEngineBeforeCronJobStartEventListener
public RuleEngineBeforeCronJobStartEventListener()
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<BeforeCronJobStartEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getModelService
-
setModelService
-