Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

JobDetailObject.ApplicationContextJobDataKey Property

Set the key of an IApplicationContext reference to expose in the JobDataMap, for example "applicationContext". Default is none. Only applicable when running in a Spring ApplicationContext.

[Visual Basic]
Public Overridable WriteOnly Property ApplicationContextJobDataKey() As String
   Public Set
   End Set
End Property
[C#]
public virtual string ApplicationContextJobDataKey { public set; }

Remarks

In case of a QuartzJobObject, the reference will be applied to the Job instance as object property. An "applicationContext" attribute will correspond to a "setApplicationContext" method in that scenario.

Note that ObjectFactory callback interfaces like IApplicationContextAware are not automatically applied to Quartz Job instances, because Quartz itself is responsible for the lifecycle of its Jobs.

Note: When using persistent job stores where JobDetail contents will be kept in the database, do not put an IApplicationContext reference into the JobDataMap but rather into the SchedulerContext.

See Also

JobDetailObject Class | Spring.Scheduling.Quartz Namespace | ApplicationContextSchedulerContextKey | IApplicationContext