org.springframework.batch.core.step.item
Class RepeatOperationsStepFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.step.item.AbstractStepFactoryBean
      extended by org.springframework.batch.core.step.item.RepeatOperationsStepFactoryBean
All Implemented Interfaces:
BeanNameAware, FactoryBean

public class RepeatOperationsStepFactoryBean
extends AbstractStepFactoryBean

Factory bean for Step implementations allowing registration of listeners and also direct injection of the RepeatOperations needed at step and chunk level.

Author:
Dave Syer

Constructor Summary
RepeatOperationsStepFactoryBean()
           
 
Method Summary
protected  void applyConfiguration(ItemOrientedStep step)
           
 void setChunkOperations(RepeatOperations chunkOperations)
          The RepeatOperations to use for the inner loop of the batch processing.
 void setListeners(StepListener[] listeners)
          The listeners to inject into the Step.
 void setStepOperations(RepeatOperations stepOperations)
          The RepeatOperations to use for the outer loop of the batch processing.
 void setStreams(ItemStream[] streams)
          The streams to inject into the Step.
 
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

RepeatOperationsStepFactoryBean

public RepeatOperationsStepFactoryBean()
Method Detail

setStreams

public void setStreams(ItemStream[] streams)
The streams to inject into the Step. Any instance of ItemStream can be used, and will then receive callbacks at the appropriate stage in the step.

Parameters:
streams - an array of listeners

setListeners

public void setListeners(StepListener[] listeners)
The listeners to inject into the Step. Any instance of StepListener can be used, and will then receive callbacks at the appropriate stage in the step.

Parameters:
listeners - an array of listeners

setStepOperations

public void setStepOperations(RepeatOperations stepOperations)
The RepeatOperations to use for the outer loop of the batch processing. Should be set up by the caller through a factory. Defaults to a plain RepeatTemplate.

Parameters:
stepOperations - a RepeatOperations instance.

setChunkOperations

public void setChunkOperations(RepeatOperations chunkOperations)
The RepeatOperations to use for the inner loop of the batch processing. should be set up by the caller through a factory. defaults to a plain RepeatTemplate.

Parameters:
chunkOperations - a RepeatOperations instance.

applyConfiguration

protected void applyConfiguration(ItemOrientedStep step)
Overrides:
applyConfiguration in class AbstractStepFactoryBean
Parameters:
step -


Copyright © 2008 SpringSource. All Rights Reserved.