Purge ItemProcessor
This commit is contained in:
@@ -18,7 +18,6 @@ package org.springframework.batch.execution.tasklet;
|
||||
|
||||
import org.springframework.batch.core.tasklet.Tasklet;
|
||||
import org.springframework.batch.io.Skippable;
|
||||
import org.springframework.batch.item.ItemProcessor;
|
||||
import org.springframework.batch.item.ItemReader;
|
||||
import org.springframework.batch.item.ItemRecoverer;
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
@@ -34,16 +33,16 @@ import org.springframework.util.Assert;
|
||||
* A concrete implementation of the {@link Tasklet} interface that provides
|
||||
* 'split processing'. This type of processing is characterized by separating
|
||||
* the reading and processing of batch data into two separate classes:
|
||||
* {@link ItemReader} and {@link ItemProcessor}. The {@link ItemReader} class
|
||||
* {@link ItemReader} and {@link ItemWriter}. The {@link ItemReader} class
|
||||
* provides a solid means for re-usability and enforces good architecture
|
||||
* practices. Because an object <em>must</em> be returned by the
|
||||
* {@link ItemReader} to continue processing, (returning null indicates
|
||||
* processing should end) a developer is forced to read in all relevant data,
|
||||
* place it into a domain object, and return that object. The
|
||||
* {@link ItemProcessor} will then use this object for calculations and output.<br/>
|
||||
* {@link ItemWriter} will then use this object for calculations and output.<br/>
|
||||
*
|
||||
* If a {@link RetryPolicy} is provided it will be used to construct a stateful
|
||||
* retry around the {@link ItemProcessor}, delegating identity concerns to the
|
||||
* retry around the {@link ItemWriter}, delegating identity concerns to the
|
||||
* {@link ItemReader} and recovery concerns to the {@link ItemRecoverer} (if
|
||||
* present). In this case clients of this class do not need to take any
|
||||
* additional action at runtime to take advantage of the retry and recovery,
|
||||
@@ -60,7 +59,7 @@ import org.springframework.util.Assert;
|
||||
* transactional recover method.
|
||||
*
|
||||
* @see ItemReader
|
||||
* @see ItemProcessor
|
||||
* @see ItemWriter
|
||||
* @see RetryPolicy
|
||||
* @see Recoverable
|
||||
*
|
||||
@@ -120,7 +119,7 @@ public class ItemOrientedTasklet implements Tasklet, Skippable, InitializingBean
|
||||
|
||||
/**
|
||||
* Read from the {@link ItemReader} and process (if not null) with the
|
||||
* {@link ItemProcessor}. The call to {@link ItemProcessor} is wrapped in a
|
||||
* {@link ItemWriter}. The call to {@link ItemWriter} is wrapped in a
|
||||
* stateful retry, if a {@link RetryPolicy} is provided. The
|
||||
* {@link ItemRecoverer} is used (if provided) in the case of an exception
|
||||
* to apply alternate processing to the item. If the stateful retry is in
|
||||
|
||||
@@ -18,8 +18,8 @@ package org.springframework.batch.execution.tasklet;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.springframework.batch.item.ItemProcessor;
|
||||
import org.springframework.batch.item.ItemReader;
|
||||
import org.springframework.batch.item.ItemWriter;
|
||||
import org.springframework.batch.restart.GenericRestartData;
|
||||
import org.springframework.batch.restart.RestartData;
|
||||
import org.springframework.batch.restart.Restartable;
|
||||
@@ -30,7 +30,7 @@ import org.springframework.batch.support.PropertiesConverter;
|
||||
* {@link Restartable} to the provider and processor.
|
||||
*
|
||||
* @see ItemReader
|
||||
* @see ItemProcessor
|
||||
* @see ItemWriter
|
||||
* @see Restartable
|
||||
*
|
||||
* @author Lucas Ward
|
||||
|
||||
Reference in New Issue
Block a user