Default implementation of IJobParametersValidator. More...
Public Member Functions | |
DefaultJobParametersValidator () | |
Convenient default constructor for unconstrained validation. More... | |
DefaultJobParametersValidator (string[] requiredKeys, string[] optionalKeys) | |
Create a new validator with the required and optional job parameter keys provided. More... | |
void | Validate (JobParameters parameters) |
Check the parameters meet the specification provided. If optional keys are explicitly specified then all keys must be in that list, or in the required list. Otherwise all keys that are specified as required must be present. More... | |
void | AfterPropertiesSet () |
Check that there are no overlaps between required and optional keys. IInitializationPostOperations.AfterPropertiesSet More... | |
Properties | |
ICollection< string > | RequiredKeys [set] |
Collection of required keys property. More... | |
ICollection< string > | OptionalKeys [set] |
Collection of optional keys property. More... | |
Detailed Description
Default implementation of IJobParametersValidator.
Constructor & Destructor Documentation
Summer.Batch.Core.Job.DefaultJobParametersValidator.DefaultJobParametersValidator | ( | ) |
Convenient default constructor for unconstrained validation.
Summer.Batch.Core.Job.DefaultJobParametersValidator.DefaultJobParametersValidator | ( | string[] | requiredKeys, |
string[] | optionalKeys | ||
) |
Create a new validator with the required and optional job parameter keys provided.
- Parameters
-
requiredKeys optionalKeys
Member Function Documentation
void Summer.Batch.Core.Job.DefaultJobParametersValidator.AfterPropertiesSet | ( | ) |
Check that there are no overlaps between required and optional keys. IInitializationPostOperations.AfterPropertiesSet
Implements Summer.Batch.Common.Factory.IInitializationPostOperations.
void Summer.Batch.Core.Job.DefaultJobParametersValidator.Validate | ( | JobParameters | parameters | ) |
Check the parameters meet the specification provided. If optional keys are explicitly specified then all keys must be in that list, or in the required list. Otherwise all keys that are specified as required must be present.
- Parameters
-
parameters
- Exceptions
-
JobParametersInvalidException
Implements Summer.Batch.Core.IJobParametersValidator.
Property Documentation
|
set |
Collection of optional keys property.
|
set |
Collection of required keys property.
The documentation for this class was generated from the following file:
- Summer.Batch.Core/Core/Job/DefaultJobParametersValidator.cs