Package org.springframework.batch.core.jsr.job.flow

Examples of org.springframework.batch.core.jsr.job.flow.JsrFlowJob


  }

  @Override
  public final FlowJob getObject() throws Exception {
    Assert.isTrue(StringUtils.hasText(name), "The job must have an id.");
    JsrFlowJob flowJob = new JsrFlowJob(name);
    flowJob.setJobExplorer(jobExplorer);

    if (restartable != null) {
      flowJob.setRestartable(restartable);
    }

    if (jobRepository != null) {
      flowJob.setJobRepository(jobRepository);
    }

    if (jobParametersValidator != null) {
      flowJob.setJobParametersValidator(jobParametersValidator);
    }

    if (jobExecutionListeners != null) {
      flowJob.setJobExecutionListeners(jobExecutionListeners);
    }

    if (jobParametersIncrementer != null) {
      flowJob.setJobParametersIncrementer(jobParametersIncrementer);
    }

    if (flow != null) {
      flowJob.setFlow(flow);
    }

    flowJob.afterPropertiesSet();
    return flowJob;
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.jsr.job.flow.JsrFlowJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.