Class LegacyAwareJobDataBinder

java.lang.Object
org.axonframework.eventhandling.scheduling.quartz.LegacyAwareJobDataBinder
All Implemented Interfaces:
EventJobDataBinder

public class LegacyAwareJobDataBinder extends Object implements EventJobDataBinder
EventJobDataBinder implementation that adds support for Event publication Jobs scheduled in Axon 2.
  • Constructor Details

    • LegacyAwareJobDataBinder

      public LegacyAwareJobDataBinder()
      Initialize the Job Data Binder to add legacy support while still allowing the default Axon 3 Job Data format
    • LegacyAwareJobDataBinder

      public LegacyAwareJobDataBinder(EventJobDataBinder delegate)
      Initialize the LegacyAwareJobDataBinder to add legacy job support, reverting to the given delegate when the given job is not a legacy job definition.
      Parameters:
      delegate - The job data binder to bind non legacy jobs with.
  • Method Details

    • toJobData

      public org.quartz.JobDataMap toJobData(Object eventMessage)
      Description copied from interface: EventJobDataBinder
      Write an eventMessage (or its payload) to a JobDataMap.
      Specified by:
      toJobData in interface EventJobDataBinder
      Parameters:
      eventMessage - to write to the JobDataMap
      Returns:
      JobDataMap written to (must not be null)
    • fromJobData

      public Object fromJobData(org.quartz.JobDataMap jobData)
      Description copied from interface: EventJobDataBinder
      Read an EventMessage (or its payload) from the JobDataMap.
      Specified by:
      fromJobData in interface EventJobDataBinder
      Parameters:
      jobData - to read from
      Returns:
      event message (or its payload)