Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SchedulerFactoryObject.ApplicationContextSchedulerContextKey Property

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

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

Property Value

The application context scheduler context key.


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

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 reponsible for the lifecycle of its Jobs.

See Also

SchedulerFactoryObject Class | Spring.Scheduling.Quartz Namespace | ApplicationContextJobDataKey