|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.step.item.AbstractStepFactoryBean org.springframework.batch.core.step.item.SimpleStepFactoryBean
public class SimpleStepFactoryBean
Most common configuration options for simple steps should be found here. Use
this factory bean instead of creating a Step
implementation manually.
This factory does not support configuration of fault-tolerant behavior, use
appropriate subclass of this factory bean to configure skip or retry.
SkipLimitStepFactoryBean
,
StatefulRetryStepFactoryBean
Constructor Summary | |
---|---|
SimpleStepFactoryBean()
|
Method Summary | |
---|---|
protected void |
applyConfiguration(ItemOrientedStep step)
|
protected RepeatTemplate |
getChunkOperations()
Protected getter for the chunk operations to make them available in subclasses. |
protected ExceptionHandler |
getExceptionHandler()
Protected getter for the ExceptionHandler . |
protected ItemHandler |
getItemHandler()
Public getter for the ItemHandler. |
protected StepListener[] |
getListeners()
Protected getter for the StepListener s. |
protected RepeatTemplate |
getStepOperations()
Protected getter for the step operations to make them available in subclasses. |
void |
setCommitInterval(int commitInterval)
Set the commit interval. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Public setter for the SimpleLimitExceptionHandler. |
protected void |
setItemHandler(ItemHandler itemHandler)
Public setter for the ItemHandler. |
void |
setListeners(StepListener[] listeners)
The listeners to inject into the Step . |
void |
setStreams(ItemStream[] streams)
The streams to inject into the Step . |
void |
setTaskExecutor(TaskExecutor taskExecutor)
Public setter for the TaskExecutor . |
Methods inherited from class org.springframework.batch.core.step.item.AbstractStepFactoryBean |
---|
getItemReader, getItemWriter, getName, getObject, getObjectType, isSingleton, setAllowStartIfComplete, setBeanName, setItemReader, setItemWriter, setJobRepository, setSingleton, setStartLimit, setTransactionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleStepFactoryBean()
Method Detail |
---|
public void setCommitInterval(int commitInterval)
commitInterval
- 1 by defaultpublic void setStreams(ItemStream[] streams)
Step
. Any instance of
ItemStream
can be used, and will then receive callbacks at the
appropriate stage in the step.
streams
- an array of listenerspublic void setListeners(StepListener[] listeners)
Step
. Any instance of
StepListener
can be used, and will then receive callbacks at the
appropriate stage in the step.
listeners
- an array of listenersprotected StepListener[] getListeners()
StepListener
s.
protected RepeatTemplate getStepOperations()
protected RepeatTemplate getChunkOperations()
public void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler
- the exceptionHandler to setprotected ExceptionHandler getExceptionHandler()
ExceptionHandler
.
ExceptionHandler
public void setTaskExecutor(TaskExecutor taskExecutor)
TaskExecutor
. If this is set, then it will
be used to execute the chunk processing inside the Step
.
taskExecutor
- the taskExecutor to setprotected ItemHandler getItemHandler()
protected void setItemHandler(ItemHandler itemHandler)
itemHandler
- the ItemHandler to setprotected void applyConfiguration(ItemOrientedStep step)
applyConfiguration
in class AbstractStepFactoryBean
step
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |