org.axonframework.eventhandling.scheduling.quartz
Class QuartzEventScheduler.DirectEventJobDataBinder

java.lang.Object
  extended by org.axonframework.eventhandling.scheduling.quartz.QuartzEventScheduler.DirectEventJobDataBinder
All Implemented Interfaces:
EventJobDataBinder
Enclosing class:
QuartzEventScheduler

public static class QuartzEventScheduler.DirectEventJobDataBinder
extends Object
implements EventJobDataBinder

Binds the EventMessage as is to JobDataMap under EVENT_KEY. In order for JobDataMap to successfully serialize, the payload of the EventMessage must be Serializable.


Field Summary
static String EVENT_KEY
          The key used to locate the event in the JobDataMap.
 
Constructor Summary
QuartzEventScheduler.DirectEventJobDataBinder()
           
 
Method Summary
 Object fromJobData(org.quartz.JobDataMap jobData)
          Read an EventMessage (or its payload) from a JobDataMap.
 org.quartz.JobDataMap toJobData(Object eventMessage)
          Write an eventMessage (or its payload) to a JobDataMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_KEY

public static final String EVENT_KEY
The key used to locate the event in the JobDataMap.

Constructor Detail

QuartzEventScheduler.DirectEventJobDataBinder

public QuartzEventScheduler.DirectEventJobDataBinder()
Method Detail

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 a JobDataMap.

Specified by:
fromJobData in interface EventJobDataBinder
Parameters:
jobData - to read from
Returns:
event message (or its payload)


Copyright © 2010-2016. All Rights Reserved.