Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SchedulerFactoryObject Members

SchedulerFactoryObject overview

Public Static (Shared) Fields

DEFAULT_THREAD_COUNT Default thread count to be set to thread pool.
PROP_THREAD_COUNT Property name for thread count in thread pool.

Public Static (Shared) Properties

ConfigTimeDbProvider Return the IDbProvider for the currently configured Quartz Scheduler, to be used by LocalDataSourceJobStore.
ConfigTimeTaskExecutor Return the TaskExecutor for the currently configured Quartz Scheduler, to be used by LocalTaskExecutorThreadPool.

Public Instance Constructors

SchedulerFactoryObject Constructor Initializes a new instance of the SchedulerFactoryObject class.

Public Instance Properties

ApplicationContext Sets the IApplicationContext that this object runs in.
ApplicationContextSchedulerContextKey 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.
AutoStartup Set whether to automatically start the scheduler after initialization. Default is "true"; set this to "false" to allow for manual startup.
Calendars (inherited from SchedulerAccessor) Register a list of Quartz ICalendar objects with the Scheduler that this FactoryObject creates, to be referenced by Triggers.
ConfigLocation Set the location of the Quartz properties config file, for example as assembly resource "assembly:quartz.properties".
DbProvider Set the default DbProvider to be used by the Scheduler. If set, this will override corresponding settings in Quartz properties.
ExposeSchedulerInRepository Set whether to expose the Spring-managed IScheduler instance in the Quartz SchedulerRepository. Default is "false", since the Spring-managed Scheduler is usually exclusively intended for access within the Spring context.
GlobalJobListeners (inherited from SchedulerAccessor) Specify global Quartz JobListeners to be registered with the Scheduler. Such JobListeners will apply to all Jobs in the Scheduler.
GlobalTriggerListeners (inherited from SchedulerAccessor) Specify global Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will apply to all Triggers in the Scheduler.
IsSingleton Is the object managed by this factory a singleton or a prototype?
JobDetails (inherited from SchedulerAccessor) Register a list of JobDetail objects with the Scheduler that this FactoryObject creates, to be referenced by Triggers. This is not necessary when a Trigger determines the JobDetail itself: In this case, the JobDetail will be implicitly registered in combination with the Trigger.
JobFactory Set the Quartz JobFactory to use for this Scheduler.
JobListeners (inherited from SchedulerAccessor) Specify named Quartz JobListeners to be registered with the Scheduler. Such JobListeners will only apply to Jobs that explicitly activate them via their name.
JobSchedulingDataLocation (inherited from SchedulerAccessor) Set the location of a Quartz job definition XML file that follows the "job_scheduling_data" XSD. Can be specified to automatically register jobs that are defined in such a file, possibly in addition to jobs defined directly on this SchedulerFactoryObject.
JobSchedulingDataLocations (inherited from SchedulerAccessor) Set the locations of Quartz job definition XML files that follow the "job_scheduling_data_1_5" XSD. Can be specified to automatically register jobs that are defined in such files, possibly in addition to jobs defined directly on this SchedulerFactoryObject.
ObjectName Set the name of the object in the object factory that created this object.
ObjectType Return the Type of object that this IFactoryObject creates, or a null reference (Nothing in Visual Basic) if not known in advance.
OverwriteExistingJobs (inherited from SchedulerAccessor) Set whether any jobs defined on this SchedulerFactoryObject should overwrite existing job definitions. Default is "false", to not overwrite already registered jobs that have been read in from a persistent job store.
QuartzProperties Set Quartz properties, like "quartz.threadPool.type".
ResourceLoader (inherited from SchedulerAccessor) Sets the IResourceLoader that this object runs in.
Running Gets a value indicating whether this SchedulerFactoryObject is running.
SchedulerContextAsMap Register objects in the Scheduler context via a given Map. These objects will be available to any Job that runs in this Scheduler.
SchedulerFactoryType Set the Quartz SchedulerFactory implementation to use.
SchedulerListeners (inherited from SchedulerAccessor) Specify Quartz SchedulerListeners to be registered with the Scheduler.
SchedulerName Set the name of the Scheduler to fetch from the SchedulerFactory. If not specified, the default Scheduler will be used.
StartupDelay Set the time span to wait after initialization before starting the scheduler asynchronously. Default is 0, meaning immediate synchronous startup on initialization of this object.
TaskExecutor Set the Spring TaskExecutor to use as Quartz backend. Exposed as thread pool through the Quartz SPI.
TransactionManager (inherited from SchedulerAccessor) Set the transaction manager to be used for registering jobs and triggers that are defined by this SchedulerFactoryObject. Default is none; setting this only makes sense when specifying a DataSource for the Scheduler.
TriggerListeners (inherited from SchedulerAccessor) Specify named Quartz TriggerListeners to be registered with the Scheduler. Such TriggerListeners will only apply to Triggers that explicitly activate them via their name.
Triggers (inherited from SchedulerAccessor) Register a list of Trigger objects with the Scheduler that this FactoryObject creates.
WaitForJobsToCompleteOnShutdown Set whether to wait for running jobs to complete on Shutdown. Default is "false".

Public Instance Methods

AfterPropertiesSet Invoked by an IObjectFactory after it has injected all of an object's dependencies.
Dispose Shut down the Quartz scheduler on object factory Shutdown, stopping all scheduled jobs.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObject Return an instance (possibly shared or independent) of the object managed by this factory.
GetType (inherited from Object)Gets the Type of the current instance.
Start Starts this instance.
Stop Stops this instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

logger (inherited from SchedulerAccessor) Logger instance.
resourceLoader (inherited from SchedulerAccessor) Resource loader instance for sub-classes

Protected Instance Methods

CreateScheduler Create the Scheduler instance for the given factory and scheduler name. Called by afterPropertiesSet.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetScheduler Template method that determines the Scheduler to operate on. To be implemented by subclasses.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
MergePropertiesIntoMap Merges the properties into map. This effectively also overwrites existing properties with same key in map.
RegisterJobsAndTriggers (inherited from SchedulerAccessor) Register jobs and triggers (within a transaction, if possible).
RegisterListeners (inherited from SchedulerAccessor) Register all specified listeners with the Scheduler.
StartScheduler Start the Quartz Scheduler, respecting the "startDelay" setting.

See Also

SchedulerFactoryObject Class | Spring.Scheduling.Quartz Namespace | IScheduler | ISchedulerFactory | StdSchedulerFactory