Summer.Batch.Core.Scope.Context Namespace Reference

Classes

class  ChunkContext
 Context object for weakly typed data stored for the duration of a chunk (usually a group of items processed together in a transaction). If there is a rollback and the chunk is retried the same context will be associated with it. More...
 
class  JobContext
 A context object that can be used to interrogate the current JobExecution and some of its associated properties using expressions based on bean paths. Has public getters for the job execution and convenience methods for accessing commonly used properties like the ExecutionContext associated with the job execution. More...
 
class  JobSynchronizationManager
 Central convenience class for framework use in managing the job scope context. Generally only to be used by implementations of Job. N.B. it is the responsibility of every Job implementation to ensure that a JobContext is available on every thread that might be involved in a job execution, including worker threads from a pool. More...
 
class  StepContext
 A context object that can be used to interrogate the current StepExecution and some of its associated properties using expressions based on bean paths. Has public getters for the step execution and convenience methods for accessing commonly used properties like the ExecutionContext associated with the step or its enclosing job execution. More...
 
class  StepContextRepeatCallback
 Convenient base class for clients who need to do something in a repeat callback inside a IStep. More...
 
class  StepSynchronizationManager
 Central convenience class for framework use in managing the step scope context. Generally only to be used by implementations of IStep. N.B. : it is the responsibility of every IStep implementation to ensure that a StepContext is available on every thread that might be involved in a step execution, including worker threads from a pool. More...
 
class  SynchronizationManagerSupport
 Central convenience class for framework use in managing the scope context. More...
 

Functions

delegate RepeatStatus DoInChunkContext (IRepeatContext context, ChunkContext chunkContext)
 Do the work required for this chunk of the step. The ChunkContext provided is managed by the base class, so that if there is still work to do for the task in hand state can be stored here. In a multi-threaded client, the base class ensures that only one thread at a time can be working on each instance of ChunkContext} Workers should signal that they are finished with a context by removing all the attributes they have added. If a worker does not remove them another thread might see stale state. NOTE : moved from abstract method to delegate More...
 

Function Documentation

delegate RepeatStatus Summer.Batch.Core.Scope.Context.DoInChunkContext ( IRepeatContext  context,
ChunkContext  chunkContext 
)

Do the work required for this chunk of the step. The ChunkContext provided is managed by the base class, so that if there is still work to do for the task in hand state can be stored here. In a multi-threaded client, the base class ensures that only one thread at a time can be working on each instance of ChunkContext} Workers should signal that they are finished with a context by removing all the attributes they have added. If a worker does not remove them another thread might see stale state. NOTE : moved from abstract method to delegate

Parameters
context
chunkContext
Exceptions
Exception 
Returns