Package org.springframework.batch.item
Class ItemStreamSupport
- java.lang.Object
- org.springframework.batch.item.ItemStreamSupport
- All Implemented Interfaces:
ItemStream
- Direct Known Subclasses:
AbstractItemStreamItemReader,AbstractItemStreamItemWriter,CheckpointSupport,ChunkMonitor,TradeWriter
public abstract class ItemStreamSupport extends java.lang.Object implements ItemStream
Empty method implementation ofItemStream.- Author:
- Dave Syer, Dean de Bree
Constructor Summary
Constructors Constructor Description ItemStreamSupport()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()No-op.java.lang.StringgetExecutionContextKey(java.lang.String key)voidopen(ExecutionContext executionContext)No-op.protected voidsetExecutionContextName(java.lang.String name)voidsetName(java.lang.String name)The name of the component which will be used as a stem for keys in theExecutionContext.voidupdate(ExecutionContext executionContext)Return emptyExecutionContext.
Method Detail
close
public void close()
No-op.- Specified by:
closein interfaceItemStream- See Also:
ItemStream.close()
open
public void open(ExecutionContext executionContext)
No-op.- Specified by:
openin interfaceItemStream- Parameters:
executionContext- current step'sExecutionContext. Will be the executionContext from the last run of the step on a restart.- See Also:
ItemStream.open(ExecutionContext)
update
public void update(ExecutionContext executionContext)
Return emptyExecutionContext.- Specified by:
updatein interfaceItemStream- Parameters:
executionContext- to be updated- See Also:
ItemStream.update(ExecutionContext)
setName
public void setName(java.lang.String name)
The name of the component which will be used as a stem for keys in theExecutionContext. Subclasses should provide a default value, e.g. the short form of the class name.- Parameters:
name- the name for the component
setExecutionContextName
protected void setExecutionContextName(java.lang.String name)
getExecutionContextKey
public java.lang.String getExecutionContextKey(java.lang.String key)