类 JobBuilderHelper<B extends JobBuilderHelper<B>>

  • 直接已知子类:
    FlowJobBuilder, JobBuilder, SimpleJobBuilder

    public abstract class JobBuilderHelper<B extends JobBuilderHelper<B>>
    extends java.lang.Object
    A base class and utility for other job builders providing access to common properties like job repository.
    从以下版本开始:
    2.2
    作者:
    Dave Syer
    • 字段详细资料

      • logger

        protected final org.apache.commons.logging.Log logger
    • 构造器详细资料

      • JobBuilderHelper

        protected JobBuilderHelper​(JobBuilderHelper<?> parent)
        Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.
        参数:
        parent - a parent helper containing common step properties
    • 方法详细资料

      • validator

        public B validator​(JobParametersValidator jobParametersValidator)
        Add a job parameters validator.
        参数:
        jobParametersValidator - a job parameters validator
        返回:
        this to enable fluent chaining
      • incrementer

        public B incrementer​(JobParametersIncrementer jobParametersIncrementer)
        Add a job parameters incrementer.
        参数:
        jobParametersIncrementer - a job parameters incrementer
        返回:
        this to enable fluent chaining
      • repository

        public B repository​(JobRepository jobRepository)
        Sets the job repository for the job.
        参数:
        jobRepository - the job repository (mandatory)
        返回:
        this to enable fluent chaining
      • listener

        public B listener​(JobExecutionListener listener)
        Register a job execution listener.
        参数:
        listener - a job execution listener
        返回:
        this to enable fluent chaining
      • preventRestart

        public B preventRestart()
        Set a flag to prevent restart an execution of this job even if it has failed.
        返回:
        this to enable fluent chaining
      • getName

        protected java.lang.String getName()