A JobFactory that instantiates the Job instance (using the default no-arg
constructor, or more specifically: InstantiateTypeT(Type)), and
then attempts to set all values from the IJobExecutionContext and
the IJobExecutionContext's merged JobDataMap onto
properties of the job.
Inheritance Hierarchy
Quartz.SimplSimpleJobFactory
Quartz.SimplPropertySettingJobFactory
Namespace: Quartz.Simpl
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public class PropertySettingJobFactory : SimpleJobFactory
The PropertySettingJobFactory type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PropertySettingJobFactory | Initializes a new instance of the PropertySettingJobFactory class |
Properties
Name | Description | |
---|---|---|
ThrowIfPropertyNotFound |
Whether the JobInstantiation should fail and throw and exception if
a key (name) and value (type) found in the JobDataMap does not
correspond to a property setter on the Job class.
| |
WarnIfPropertyNotFound |
Get or set whether a warning should be logged if
a key (name) and value (type) found in the JobDataMap does not
correspond to a property setter on the Job class.
|
Methods
Name | Description | |
---|---|---|
ConvertValueIfNecessary | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewJob |
Called by the scheduler at the time of the trigger firing, in order to
produce a IJob instance on which to call Execute.
(Overrides SimpleJobFactoryNewJob(TriggerFiredBundle, IScheduler).) | |
ReturnJob |
Allows the job factory to destroy/cleanup the job if needed.
No-op when using SimpleJobFactory.
(Inherited from SimpleJobFactory.) | |
SetObjectProperties |
Sets the object properties.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
See Also