|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.builder.JobBuilderHelper<B>
public abstract class JobBuilderHelper<B extends JobBuilderHelper<B>>
A base class and utility for other job builders providing access to common properties like job repository.
| Nested Class Summary | |
|---|---|
static class |
JobBuilderHelper.CommonJobProperties
|
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
protected |
JobBuilderHelper(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent. |
|
JobBuilderHelper(String name)
|
| Method Summary | |
|---|---|
protected void |
enhance(Job target)
|
protected JobRepository |
getJobRepository()
|
protected String |
getName()
|
B |
incrementer(JobParametersIncrementer jobParametersIncrementer)
Add a job parameters incrementer. |
protected boolean |
isRestartable()
|
B |
listener(JobExecutionListener listener)
Register a job execution listener. |
B |
preventRestart()
Set a flag to prevent restart an execution of this job even if it has failed. |
B |
repository(JobRepository jobRepository)
Sets the job repository for the job. |
B |
validator(JobParametersValidator jobParametersValidator)
Add a job parameters validator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public JobBuilderHelper(String name)
protected JobBuilderHelper(JobBuilderHelper<?> parent)
parent - a parent helper containing common step properties| Method Detail |
|---|
public B validator(JobParametersValidator jobParametersValidator)
jobParametersValidator - a job parameters validator
public B incrementer(JobParametersIncrementer jobParametersIncrementer)
jobParametersIncrementer - a job parameters incrementer
public B repository(JobRepository jobRepository)
jobRepository - the job repository (mandatory)
public B listener(JobExecutionListener listener)
listener - a job execution listener
public B preventRestart()
protected String getName()
protected JobRepository getJobRepository()
protected boolean isRestartable()
protected void enhance(Job target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||