Summer.Batch.Core.Step.Item.SimpleChunkProvider< T > Class Template Reference

Simple implementation of the T:IChunkProvider interface that does basic chunk providing from an T:Summer.Batch.Infrastructure.Item.IItemReader. More...

Inheritance diagram for Summer.Batch.Core.Step.Item.SimpleChunkProvider< T >:
Summer.Batch.Core.Step.Item.IChunkProvider< T >

Public Member Functions

 SimpleChunkProvider (IItemReader< T > itemReader, IRepeatOperations repeatOperations)
 Custom constructor More...
 
Chunk< T > Provide (StepContribution contribution)
 
void PostProcess (StepContribution contribution, Chunk< T > chunk)
 
- Public Member Functions inherited from Summer.Batch.Core.Step.Item.IChunkProvider< T >
Chunk< TT > Provide (StepContribution contribution)
 Provides the chunk. More...
 
void PostProcess (StepContribution contribution, Chunk< TT > chunk)
 Post-processing operation support. More...
 

Protected Member Functions

Read (StepContribution contribution, Chunk< T > chunk)
 Read Delegates to DoRead(). Subclasses can add additional behaviour (e.g. exception handling). More...
 
DoRead ()
 Read delegation. More...
 

Protected Attributes

readonly Logger Logger = LogManager.GetCurrentClassLogger()
 Logger. More...
 

Properties

IItemReader< T > ItemReader [get, protected set]
 Item reader property. More...
 

Detailed Description

Simple implementation of the T:IChunkProvider interface that does basic chunk providing from an T:Summer.Batch.Infrastructure.Item.IItemReader.

Template Parameters
T 
Type Constraints
T :class 

Constructor & Destructor Documentation

Custom constructor

Parameters
itemReader
repeatOperations

Member Function Documentation

Read delegation.

Returns
Exceptions
Exception 
void Summer.Batch.Core.Step.Item.SimpleChunkProvider< T >.PostProcess ( StepContribution  contribution,
Chunk< T >  chunk 
)

See also
IChunkProvider::PostProcess.
Parameters
contribution
chunk

See also
IChunkProvider::Provide.
Parameters
contribution
Returns
T Summer.Batch.Core.Step.Item.SimpleChunkProvider< T >.Read ( StepContribution  contribution,
Chunk< T >  chunk 
)
protected

Read Delegates to DoRead(). Subclasses can add additional behaviour (e.g. exception handling).

Parameters
contributionthe current step execution contribution
chunkthe current chunk
Returns
a new item for processing
Exceptions
Exception if there is a generic issue

Member Data Documentation

readonly Logger Summer.Batch.Core.Step.Item.SimpleChunkProvider< T >.Logger = LogManager.GetCurrentClassLogger()
protected

Logger.

Property Documentation

IItemReader<T> Summer.Batch.Core.Step.Item.SimpleChunkProvider< T >.ItemReader
getprotected set

Item reader property.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Step/Item/SimpleChunkProvider.cs