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:
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
-
name the 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
-
jobFactory the 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
-
name the 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