C# Class Summer.Batch.Core.Configuration.Support.MapJobRegistry

Simple, thread-safe, dictionary-based implementation of IJobRegistry.
Inheritance: IJobRegistry
Show file Open project: SummerBatch/SummerBatch

Public Methods

Method Description
GetJob ( string name ) : IJob

Locates a Job at runtime.

GetJobNames ( ) : ICollection

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

Register ( IJobFactory jobFactory ) : void

Registers a job at runtime.

Unregister ( string name ) : void

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

Method Details

GetJob() public method

Locates a Job at runtime.
 if no job with given name could be located
public GetJob ( string name ) : IJob
name string the name of the Job which should be unique
return IJob

GetJobNames() public method

Provides the currently registered job names. The return value is unmodifiable and disconnected from the underlying registry storage.
public GetJobNames ( ) : ICollection
return ICollection

Register() public method

Registers a job at runtime.
 if a factory with the same job name has already been registered
public Register ( IJobFactory jobFactory ) : void
jobFactory IJobFactory the job to be registered
return void

Unregister() public method

Unregisters a previously registered job. If it was not previously registered there is no error.
public Unregister ( string name ) : void
name string the job to unregister
return void