Class JsrFlowJob
- java.lang.Object
- org.springframework.batch.core.job.AbstractJob
- org.springframework.batch.core.job.flow.FlowJob
- org.springframework.batch.core.jsr.job.flow.JsrFlowJob
- All Implemented Interfaces:
Job
,StepLocator
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
public class JsrFlowJob extends FlowJob
JSR-352 specific extension of theFlowJob
.- Since:
- 3.0
- Author:
- Michael Minella
Field Summary
Fields inherited from class org.springframework.batch.core.job.AbstractJob
logger
Constructor Summary
Constructors Constructor Description JsrFlowJob()
No arg constructor (invalid state)JsrFlowJob(java.lang.String name)
Main constructor
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(JobExecution execution)
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls.protected ExitStatus
getDefaultExitStatusForFailure(java.lang.Throwable ex, JobExecution execution)
Default mapping from throwable toExitStatus
.void
setJobExplorer(JobExplorer jobExplorer)
Methods inherited from class org.springframework.batch.core.job.flow.FlowJob
getStep, getStepNames, setFlow
Methods inherited from class org.springframework.batch.core.job.AbstractJob
afterPropertiesSet, execute, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toString
Method Detail
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
doExecute
protected void doExecute(JobExecution execution) throws JobExecutionException
Description copied from class:AbstractJob
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls. Implementations usually are concerned with the ordering of steps, and delegate actual step processing toAbstractJob.handleStep(Step, JobExecution)
.- Overrides:
doExecute
in classFlowJob
- Parameters:
execution
- the currentJobExecution
- Throws:
JobExecutionException
- to signal a fatal batch framework error (not a business or validation exception)- See Also:
AbstractJob.doExecute(JobExecution)
getDefaultExitStatusForFailure
protected ExitStatus getDefaultExitStatusForFailure(java.lang.Throwable ex, JobExecution execution)
Default mapping from throwable toExitStatus
.- Overrides:
getDefaultExitStatusForFailure
in classAbstractJob
- Parameters:
ex
- the cause of the failureexecution
- theJobExecution
instance.- Returns:
- an
ExitStatus