Class LegacyAwareJobDataBinder
java.lang.Object
org.axonframework.eventhandling.scheduling.quartz.LegacyAwareJobDataBinder
- All Implemented Interfaces:
EventJobDataBinder
EventJobDataBinder implementation that adds support for Event publication Jobs scheduled in Axon 2.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the Job Data Binder to add legacy support while still allowing the default Axon 3 Job Data formatLegacyAwareJobDataBinder(EventJobDataBinder delegate) Initialize the LegacyAwareJobDataBinder to add legacy job support, reverting to the givendelegatewhen the given job is not a legacy job definition. -
Method Summary
Modifier and TypeMethodDescriptionfromJobData(org.quartz.JobDataMap jobData) Read anEventMessage(or its payload) from theJobDataMap.org.quartz.JobDataMapWrite aneventMessage(or its payload) to aJobDataMap.
-
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
Initialize the LegacyAwareJobDataBinder to add legacy job support, reverting to the givendelegatewhen the given job is not a legacy job definition.- Parameters:
delegate- The job data binder to bind non legacy jobs with.
-
-
Method Details
-
toJobData
Description copied from interface:EventJobDataBinderWrite aneventMessage(or its payload) to aJobDataMap.- Specified by:
toJobDatain interfaceEventJobDataBinder- Parameters:
eventMessage- to write to theJobDataMap- Returns:
JobDataMapwritten to (must not be null)
-
fromJobData
Description copied from interface:EventJobDataBinderRead anEventMessage(or its payload) from theJobDataMap.- Specified by:
fromJobDatain interfaceEventJobDataBinder- Parameters:
jobData- to read from- Returns:
- event message (or its payload)
-