Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdaptableJobFactory.NewJob Method

Called by the scheduler at the time of the trigger firing, in order to produce a IJob instance on which to call Execute.

[Visual Basic]
Public Overridable Sub NewJob( _
   ByVal bundle As TriggerFiredBundle _
) _
    Implements IJobFactory.NewJob
public virtual IJob NewJob(
   TriggerFiredBundle bundle


The TriggerFiredBundle from which the JobDetail and other info relating to the trigger firing can be obtained.

Return Value

the newly instantiated Job




It should be extremely rare for this method to throw an exception - basically only the the case where there is no way at all to instantiate and prepare the Job for execution. When the exception is thrown, the Scheduler will move all triggers associated with the Job into the Error state, which will require human intervention (e.g. an application restart after fixing whatever configuration problem led to the issue wih instantiating the Job.

See Also

AdaptableJobFactory Class | Spring.Scheduling.Quartz Namespace