Class DefaultEventJobFactory

java.lang.Object
org.nuxeo.ecm.core.scheduler.DefaultEventJobFactory
All Implemented Interfaces:
EventJobFactory

public class DefaultEventJobFactory extends Object implements EventJobFactory
Default implementation of EventJobFactory instantiating an EventJob with a CronTrigger.
Since:
10.2
  • Constructor Details

    • DefaultEventJobFactory

      public DefaultEventJobFactory()
  • Method Details

    • buildJob

      public org.quartz.JobBuilder buildJob(Schedule schedule, Map<String,Serializable> parameters)
      Description copied from interface: EventJobFactory
      Builds the job of the scheduled event.

      Returns a builder to allow extensibility.

      Specified by:
      buildJob in interface EventJobFactory
      Parameters:
      schedule - Scheduled event contribution.
      parameters - Job parameters (might be null).
      Returns:
      An instance of JobBuilder.
    • buildTrigger

      public org.quartz.TriggerBuilder<?> buildTrigger(Schedule schedule)
      Description copied from interface: EventJobFactory
      Builds the trigger of the scheduled event.

      Returns a builder to allow extensibility.

      Specified by:
      buildTrigger in interface EventJobFactory
      Parameters:
      schedule - Scheduled event contribution.
      Returns:
      An instance of TriggerBuilder.
    • buildSchedule

      public org.quartz.ScheduleBuilder<?> buildSchedule(Schedule schedule)
      Description copied from interface: EventJobFactory
      Builds the schedule of the trigger (used by EventJobFactory.buildTrigger(Schedule)).

      Returns a builder to allow extensibility.

      Specified by:
      buildSchedule in interface EventJobFactory
      Parameters:
      schedule - Scheduled event contribution.
      Returns:
      An instance of ScheduleBuilder.
    • getJobClass

      protected Class<? extends EventJob> getJobClass()