Example usage for org.springframework.batch.core.step.tasklet TaskletStep setStreams

List of usage examples for org.springframework.batch.core.step.tasklet TaskletStep setStreams

Introduction

In this page you can find the example usage for org.springframework.batch.core.step.tasklet TaskletStep setStreams.

Prototype

public void setStreams(ItemStream[] streams) 

Source Link

Document

Register each of the streams for callbacks at the appropriate time in the step.

Usage

From source file:org.springframework.batch.core.step.item.SimpleStepFactoryBean.java

/**
 * Register the streams with the step./*  w  w  w .j a  v a2  s .c o  m*/
 * @param step the {@link TaskletStep}
 * @param streams the streams to register
 */
protected void registerStreams(TaskletStep step, ItemStream[] streams) {
    step.setStreams(streams);
}