Class ParamProvidingJobParametersValidator

  • All Implemented Interfaces:
    org.springframework.batch.core.JobParametersValidator, org.springframework.beans.factory.InitializingBean, JobParametersProvider

    public class ParamProvidingJobParametersValidator
    extends java.lang.Object
    implements org.springframework.batch.core.JobParametersValidator, JobParametersProvider, org.springframework.beans.factory.InitializingBean
    A JobParameterValidator which also provides all optional and required job parameter keys.
    • Constructor Detail

      • ParamProvidingJobParametersValidator

        public ParamProvidingJobParametersValidator()
    • Method Detail

      • validate

        public void validate​(org.springframework.batch.core.JobParameters parameters)
                      throws org.springframework.batch.core.JobParametersInvalidException
        Specified by:
        validate in interface org.springframework.batch.core.JobParametersValidator
        Throws:
        org.springframework.batch.core.JobParametersInvalidException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • setOptionalKeys

        public void setOptionalKeys​(java.util.List<java.lang.String> optionalKeys)
      • setRequiredKeys

        public void setRequiredKeys​(java.util.List<java.lang.String> requiredKeys)