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

Simple, thread-safe, dictionary-based implementation of IJobRegistry.
Inheritance: IJobRegistry
Afficher le fichier Open project: SummerBatch/SummerBatch

Méthodes publiques

Méthode 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 méthode

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
Résultat IJob

GetJobNames() public méthode

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

Register() public méthode

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
Résultat void

Unregister() public méthode

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
Résultat void