|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.DefaultJobParametersValidator
public class DefaultJobParametersValidator
Default implementation of JobParametersValidator.
| Constructor Summary | |
|---|---|
DefaultJobParametersValidator()
Convenient default constructor for unconstrained validation. |
|
DefaultJobParametersValidator(java.lang.String[] requiredKeys,
java.lang.String[] optionalKeys)
Create a new validator with the required and optional job parameter keys provided. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Check that there are no overlaps between required and optional keys. |
void |
setOptionalKeys(java.lang.String[] optionalKeys)
The keys that are optional in the parameters. |
void |
setRequiredKeys(java.lang.String[] requiredKeys)
The keys that are required in the parameters. |
void |
validate(JobParameters parameters)
Check the parameters meet the specification provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJobParametersValidator()
public DefaultJobParametersValidator(java.lang.String[] requiredKeys,
java.lang.String[] optionalKeys)
requiredKeys - the required keysoptionalKeys - the optional keyssetOptionalKeys(String[]),
setRequiredKeys(String[])| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.IllegalStateException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.IllegalStateException - if there is an overlap
public void validate(JobParameters parameters)
throws JobParametersInvalidException
validate in interface JobParametersValidatorparameters - some JobParameters
JobParametersInvalidException - if the parameters are not validJobParametersValidator.validate(JobParameters)public final void setRequiredKeys(java.lang.String[] requiredKeys)
requiredKeys - the required key valuessetOptionalKeys(String[])public final void setOptionalKeys(java.lang.String[] optionalKeys)
optionalKeys - the optional key valuessetRequiredKeys(String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||