Summer.Batch.Core.Configuration.Support.MapJobRegistry Class Reference

Simple, thread-safe, dictionary-based implementation of IJobRegistry. More...

Inheritance diagram for Summer.Batch.Core.Configuration.Support.MapJobRegistry:
Summer.Batch.Core.Configuration.IJobRegistry Summer.Batch.Core.Configuration.IListableJobLocator Summer.Batch.Core.Configuration.IJobLocator

Public Member Functions

void Register (IJobFactory jobFactory)
 Registers a job at runtime. More...
 
void Unregister (string name)
 Unregisters a previously registered job. If it was not previously registered there is no error. More...
 
IJob GetJob (string name)
 Locates a Job at runtime. More...
 
ICollection< string > GetJobNames ()
 Provides the currently registered job names. The return value is unmodifiable and disconnected from the underlying registry storage. More...
 

Detailed Description

Simple, thread-safe, dictionary-based implementation of IJobRegistry.

Member Function Documentation

IJob Summer.Batch.Core.Configuration.Support.MapJobRegistry.GetJob ( string  name)

Locates a Job at runtime.

Parameters
namethe name of the Job which should be unique
Returns
a Job identified by the given name
Exceptions
T:Summer.Batch.Core.Launch.NoSuchJobException if no job with given name could be located

Implements Summer.Batch.Core.Configuration.IJobLocator.

ICollection<string> Summer.Batch.Core.Configuration.Support.MapJobRegistry.GetJobNames ( )

Provides the currently registered job names. The return value is unmodifiable and disconnected from the underlying registry storage.

Returns
a collection of String. Empty if none are registered.

Implements Summer.Batch.Core.Configuration.IListableJobLocator.

void Summer.Batch.Core.Configuration.Support.MapJobRegistry.Register ( IJobFactory  jobFactory)

Registers a job at runtime.

Parameters
jobFactorythe job to be registered
Exceptions
DuplicateJobException if a factory with the same job name has already been registered

Implements Summer.Batch.Core.Configuration.IJobRegistry.

void Summer.Batch.Core.Configuration.Support.MapJobRegistry.Unregister ( string  name)

Unregisters a previously registered job. If it was not previously registered there is no error.

Parameters
namethe job to unregister

Implements Summer.Batch.Core.Configuration.IJobRegistry.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Configuration/Support/MapJobRegistry.cs