Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

QuartzJobObject Class

Simple implementation of the Quartz Job interface, applying the passed-in JobDataMap and also the SchedulerContext as object property values. This is appropriate because a new Job instance will be created for each execution. JobDataMap entries will override SchedulerContext entries with the same keys.

For a list of all members of this type, see QuartzJobObject Members .


[Visual Basic]
Public MustInherit Class QuartzJobObject
    Implements IJob
public abstract class QuartzJobObject : IJob

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


For example, let's assume that the JobDataMap contains a key "myParam" with value "5": The Job implementation can then expose a object property "myParam" of type int to receive such a value, i.e. a method "setMyParam(int)". This will also work for complex types like business objects etc.

Note: The QuartzJobObject class itself only implements the standard Quartz IJob interface. Let your subclass explicitly implement the Quartz IStatefulJob interface to mark your concrete job object as stateful.


Namespace: Spring.Scheduling.Quartz

Assembly: Spring.Scheduling.Quartz (in Spring.Scheduling.Quartz.dll)

See Also

QuartzJobObject Members | Spring.Scheduling.Quartz Namespace | MergedJobDataMap | Context | JobDataAsMap | JobDataAsMap | SchedulerContextAsMap | SpringObjectJobFactory | JobFactory