@Override public final FlowJob getObject() throws Exception { Assert.isTrue(StringUtils.hasText(name), "The job must have an id."); FlowJob flowJob = new FlowJob(name); 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; }
/** * Build a job that executes the flow provided, normally composed of other steps. * * @return a flow job */ public Job build() { FlowJob job = new FlowJob(); job.setName(getName()); job.setFlow(flow); super.enhance(job); try { job.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return job; }
@Override public final FlowJob getObject() throws Exception { Assert.isTrue(StringUtils.hasText(name), "The job must have an id."); FlowJob flowJob = new FlowJob(name); 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; }
public final Object getObject() throws Exception { Assert.isTrue(StringUtils.hasText(name), "The job must have an id."); FlowJob flowJob = new FlowJob(name); 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; }
@Override public final FlowJob getObject() throws Exception { Assert.isTrue(StringUtils.hasText(name), "The job must have an id."); FlowJob flowJob = new FlowJob(name); 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; }
@Override public final FlowJob getObject() throws Exception { Assert.isTrue(StringUtils.hasText(name), "The job must have an id."); FlowJob flowJob = new FlowJob(name); 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; }
/** * Build a job that executes the flow provided, normally composed of other steps. * * @return a flow job */ public Job build() { FlowJob job = new FlowJob(); job.setName(getName()); job.setFlow(flow); super.enhance(job); try { job.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return job; }
/** * Build a job that executes the flow provided, normally composed of other steps. * * @return a flow job */ public Job build() { FlowJob job = new FlowJob(); job.setName(getName()); job.setFlow(flow); super.enhance(job); try { job.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return job; }
/** * Build a job that executes the flow provided, normally composed of other steps. * * @return a flow job */ public Job build() { FlowJob job = new FlowJob(); job.setName(getName()); job.setFlow(flow); super.enhance(job); try { job.afterPropertiesSet(); } catch (Exception e) { throw new StepBuilderException(e); } return job; }