protected void enhance(Job target) { if (target instanceof AbstractJob) { AbstractJob job = (AbstractJob) target; job.setJobRepository(properties.getJobRepository()); JobParametersIncrementer jobParametersIncrementer = properties.getJobParametersIncrementer(); if (jobParametersIncrementer != null) { job.setJobParametersIncrementer(jobParametersIncrementer); } JobParametersValidator jobParametersValidator = properties.getJobParametersValidator(); if (jobParametersValidator != null) { job.setJobParametersValidator(jobParametersValidator); } Boolean restartable = properties.getRestartable(); if (restartable != null) { job.setRestartable(restartable); } List<JobExecutionListener> listeners = properties.getJobExecutionListeners(); if (!listeners.isEmpty()) { job.setJobExecutionListeners(listeners.toArray(new JobExecutionListener[0])); } } }
protected void enhance(Job target) { if (target instanceof AbstractJob) { AbstractJob job = (AbstractJob) target; job.setJobRepository(properties.getJobRepository()); JobParametersIncrementer jobParametersIncrementer = properties.getJobParametersIncrementer(); if (jobParametersIncrementer != null) { job.setJobParametersIncrementer(jobParametersIncrementer); } JobParametersValidator jobParametersValidator = properties.getJobParametersValidator(); if (jobParametersValidator != null) { job.setJobParametersValidator(jobParametersValidator); } Boolean restartable = properties.getRestartable(); if (restartable != null) { job.setRestartable(restartable); } List<JobExecutionListener> listeners = properties.getJobExecutionListeners(); if (!listeners.isEmpty()) { job.setJobExecutionListeners(listeners.toArray(new JobExecutionListener[0])); } } }
protected void enhance(Job target) { if (target instanceof AbstractJob) { AbstractJob job = (AbstractJob) target; job.setJobRepository(properties.getJobRepository()); JobParametersIncrementer jobParametersIncrementer = properties.getJobParametersIncrementer(); if (jobParametersIncrementer != null) { job.setJobParametersIncrementer(jobParametersIncrementer); } JobParametersValidator jobParametersValidator = properties.getJobParametersValidator(); if (jobParametersValidator != null) { job.setJobParametersValidator(jobParametersValidator); } Boolean restartable = properties.getRestartable(); if (restartable != null) { job.setRestartable(restartable); } List<JobExecutionListener> listeners = properties.getJobExecutionListeners(); if (!listeners.isEmpty()) { job.setJobExecutionListeners(listeners.toArray(new JobExecutionListener[0])); } } }
protected void enhance(Job target) { if (target instanceof AbstractJob) { AbstractJob job = (AbstractJob) target; job.setJobRepository(properties.getJobRepository()); JobParametersIncrementer jobParametersIncrementer = properties.getJobParametersIncrementer(); if (jobParametersIncrementer != null) { job.setJobParametersIncrementer(jobParametersIncrementer); } JobParametersValidator jobParametersValidator = properties.getJobParametersValidator(); if (jobParametersValidator != null) { job.setJobParametersValidator(jobParametersValidator); } Boolean restartable = properties.getRestartable(); if (restartable != null) { job.setRestartable(restartable); } List<JobExecutionListener> listeners = properties.getJobExecutionListeners(); if (!listeners.isEmpty()) { job.setJobExecutionListeners(listeners.toArray(new JobExecutionListener[0])); } } }
public JobBuilderHelper(String name) { this.properties = new CommonJobProperties(); properties.name = name; }
public JobBuilderHelper(String name) { this.properties = new CommonJobProperties(); properties.name = name; }
/** * Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used. * * @param parent a parent helper containing common step properties */ protected JobBuilderHelper(JobBuilderHelper<?> parent) { this.properties = new CommonJobProperties(parent.properties); }
/** * Register a job execution listener. * * @param listener a job execution listener * @return this to enable fluent chaining */ public B listener(JobExecutionListener listener) { properties.addJobExecutionListener(listener); @SuppressWarnings("unchecked") B result = (B) this; return result; }
/** * Register a job execution listener. * * @param listener a job execution listener * @return this to enable fluent chaining */ public B listener(JobExecutionListener listener) { properties.addJobExecutionListener(listener); @SuppressWarnings("unchecked") B result = (B) this; return result; }
/** * Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used. * * @param parent a parent helper containing common step properties */ protected JobBuilderHelper(JobBuilderHelper<?> parent) { this.properties = new CommonJobProperties(parent.properties); }
/** * Register a job execution listener. * * @param listener a job execution listener * @return this to enable fluent chaining */ public B listener(JobExecutionListener listener) { properties.addJobExecutionListener(listener); @SuppressWarnings("unchecked") B result = (B) this; return result; }
/** * Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used. * * @param parent a parent helper containing common step properties */ protected JobBuilderHelper(JobBuilderHelper<?> parent) { this.properties = new CommonJobProperties(parent.properties); }
public JobBuilderHelper(String name) { this.properties = new CommonJobProperties(); properties.name = name; }
public JobBuilderHelper(String name) { this.properties = new CommonJobProperties(); properties.name = name; }
/** * Register a job execution listener. * * @param listener a job execution listener * @return this to enable fluent chaining */ public B listener(JobExecutionListener listener) { properties.addJobExecutionListener(listener); @SuppressWarnings("unchecked") B result = (B) this; return result; }
/** * Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used. * * @param parent a parent helper containing common step properties */ protected JobBuilderHelper(JobBuilderHelper<?> parent) { this.properties = new CommonJobProperties(parent.properties); }