See Also

SchedulerFactoryObject Class  | SchedulerFactoryObject Members  | ApplicationContextJobDataKey Property

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

Show All

See Also Languages Spring.Scheduling.Quartz Send comments on this topic.

ApplicationContextSchedulerContextKey Property

Spring.Scheduling.Quartz Namespace > SchedulerFactoryObject Class : 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
[C#]
public virtual void ApplicationContextSchedulerContextKey {set;}

Return Type

The application context scheduler context key.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SchedulerFactoryObject Class  | SchedulerFactoryObject Members  | ApplicationContextJobDataKey Property

 

 


© 2004-2008 Spring.NET Authors. All Rights Reserved.