# Uses of Class
org.springframework.batch.item.ExecutionContext

Packages that use ExecutionContext
Package
Description
org.springframework.batch.core
Core domain context for Spring Batch covering jobs, steps, configuration and execution abstractions.
org.springframework.batch.core.job
Specific implementations of job concerns.
org.springframework.batch.core.partition.support
Implementation of common partition components.
org.springframework.batch.core.repository.dao
Specific implementations of dao concerns.
org.springframework.batch.core.step
Specific implementations of step concerns.
org.springframework.batch.core.step.item
Specific implementations of step concerns for item-oriented approach.
org.springframework.batch.core.step.tasklet
Interfaces and generic implementations of tasklet concerns.
org.springframework.batch.integration.async
Components for executing item processing asynchronously and writing the results when processing is complete.
org.springframework.batch.integration.chunk
Components for remote chunking.
org.springframework.batch.item
Infrastructure interfaces and primary dependencies for item concerns.
org.springframework.batch.item.avro
org.springframework.batch.item.database
Infrastructure implementations of database based item readers and writers.
org.springframework.batch.item.file
Infrastructure implementations of io file concerns.
org.springframework.batch.item.kafka
Apache Kafka related readers and writers
org.springframework.batch.item.support
Internal support package
org.springframework.batch.item.xml
Infrastructure implementations of xml input and output.
org.springframework.batch.test
Utility classes for batch job/step testing.

- ## Uses of ExecutionContext in org.springframework.batch.core

  Methods in org.springframework.batch.core that return ExecutionContext
  Modifier and Type
  Method
  Description
  `ExecutionContext`
  JobExecution.`getExecutionContext()`
  Returns the `ExecutionContext` for this execution.
  `ExecutionContext`
  StepExecution.`getExecutionContext()`
  Returns the `ExecutionContext` for this execution
  Methods in org.springframework.batch.core with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  JobExecution.`setExecutionContext(ExecutionContext executionContext)`
  Sets the `ExecutionContext` for this execution
  `void`
  StepExecution.`setExecutionContext(ExecutionContext executionContext)`
  Sets the `ExecutionContext` for this execution

- ## Uses of ExecutionContext in org.springframework.batch.core.job

  Methods in org.springframework.batch.core.job with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  SimpleStepHandler.`setExecutionContext(ExecutionContext executionContext)`
  A context containing values to be added to the step execution before it is handled.
  Constructors in org.springframework.batch.core.job with parameters of type ExecutionContext
  Modifier
  Constructor
  Description
  ``
  `SimpleStepHandler(JobRepository jobRepository, ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.core.partition.support

  Methods in org.springframework.batch.core.partition.support that return types with arguments of type ExecutionContext
  Modifier and Type
  Method
  Description
  `Map<String,ExecutionContext>`
  MultiResourcePartitioner.`partition(int gridSize)`
  Assign the filename of each of the injected resources to an `ExecutionContext`.
  `Map<String,ExecutionContext>`
  Partitioner.`partition(int gridSize)`
  Create a set of distinct `ExecutionContext` instances together with a unique identifier for each one.
  `Map<String,ExecutionContext>`
  SimplePartitioner.`partition(int gridSize)`
  Methods in org.springframework.batch.core.partition.support with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `protected boolean`
  SimpleStepExecutionSplitter.`isStartable(StepExecution stepExecution, ExecutionContext context)`
  Check if a step execution is startable.

- ## Uses of ExecutionContext in org.springframework.batch.core.repository.dao

  Methods in org.springframework.batch.core.repository.dao that return ExecutionContext
  Modifier and Type
  Method
  Description
  `ExecutionContext`
  ExecutionContextDao.`getExecutionContext(JobExecution jobExecution)`
  `ExecutionContext`
  ExecutionContextDao.`getExecutionContext(StepExecution stepExecution)`
  `ExecutionContext`
  JdbcExecutionContextDao.`getExecutionContext(JobExecution jobExecution)`
  `ExecutionContext`
  JdbcExecutionContextDao.`getExecutionContext(StepExecution stepExecution)`

- ## Uses of ExecutionContext in org.springframework.batch.core.step

  Methods in org.springframework.batch.core.step with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `protected void`
  AbstractStep.`close(ExecutionContext ctx)`
  Extension point for subclasses to provide callbacks to their collaborators at the end of a step (right at the end of the finally block), to close or release resources.
  `protected void`
  AbstractStep.`open(ExecutionContext ctx)`
  Extension point for subclasses to provide callbacks to their collaborators at the beginning of a step, to open or acquire resources.

- ## Uses of ExecutionContext in org.springframework.batch.core.step.item

  Methods in org.springframework.batch.core.step.item with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  ChunkMonitor.`open(ExecutionContext executionContext)`
  `void`
  ChunkMonitor.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.core.step.tasklet

  Methods in org.springframework.batch.core.step.tasklet with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `protected void`
  TaskletStep.`close(ExecutionContext ctx)`
  `protected void`
  TaskletStep.`open(ExecutionContext ctx)`

- ## Uses of ExecutionContext in org.springframework.batch.integration.async

  Methods in org.springframework.batch.integration.async with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  AsyncItemWriter.`open(ExecutionContext executionContext)`
  `void`
  AsyncItemWriter.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.integration.chunk

  Methods in org.springframework.batch.integration.chunk with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  ChunkMessageChannelItemWriter.`open(ExecutionContext executionContext)`
  `void`
  ChunkMessageChannelItemWriter.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item

  Methods in org.springframework.batch.item with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  ItemStream.`open(ExecutionContext executionContext)`
  Open the stream for the provided `ExecutionContext`.
  `void`
  ItemStreamSupport.`open(ExecutionContext executionContext)`
  No-op.
  `void`
  ItemStream.`update(ExecutionContext executionContext)`
  Indicates that the execution context provided during open is about to be saved.
  `void`
  ItemStreamSupport.`update(ExecutionContext executionContext)`
  Return empty `ExecutionContext`.
  Constructors in org.springframework.batch.item with parameters of type ExecutionContext
  Modifier
  Constructor
  Description
  ``
  `ExecutionContext(ExecutionContext executionContext)`
  Initializes a new `ExecutionContext` with the contents of another `ExecutionContext`.

- ## Uses of ExecutionContext in org.springframework.batch.item.avro

  Methods in org.springframework.batch.item.avro with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  AvroItemWriter.`open(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item.database

  Methods in org.springframework.batch.item.database with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  JdbcPagingItemReader.`open(ExecutionContext executionContext)`
  `void`
  HibernateCursorItemReader.`update(ExecutionContext executionContext)`
  Update the context and clear the session if stateful.
  `void`
  JdbcPagingItemReader.`update(ExecutionContext executionContext)`
  `void`
  JpaCursorItemReader.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item.file

  Methods in org.springframework.batch.item.file with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  MultiResourceItemReader.`open(ExecutionContext executionContext)`
  Figure out which resource to start with in case of restart, open the delegate and restore delegate's position in the resource.
  `void`
  MultiResourceItemWriter.`open(ExecutionContext executionContext)`
  `void`
  ResourcesItemReader.`open(ExecutionContext executionContext)`
  `void`
  MultiResourceItemReader.`update(ExecutionContext executionContext)`
  Store the current resource index and position in the resource.
  `void`
  MultiResourceItemWriter.`update(ExecutionContext executionContext)`
  `void`
  ResourcesItemReader.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item.kafka

  Methods in org.springframework.batch.item.kafka with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  KafkaItemReader.`open(ExecutionContext executionContext)`
  `void`
  KafkaItemReader.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item.support

  Methods in org.springframework.batch.item.support with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  AbstractFileItemWriter.`open(ExecutionContext executionContext)`
  Initialize the reader.
  `void`
  AbstractItemCountingItemStreamItemReader.`open(ExecutionContext executionContext)`
  `void`
  CompositeItemStream.`open(ExecutionContext executionContext)`
  Broadcast the call to open.
  `void`
  CompositeItemWriter.`open(ExecutionContext executionContext)`
  `void`
  SingleItemPeekableItemReader.`open(ExecutionContext executionContext)`
  If the delegate is an `ItemStream`, just pass the call on, otherwise reset the peek cache.
  `void`
  SynchronizedItemStreamReader.`open(ExecutionContext executionContext)`
  `void`
  SynchronizedItemStreamWriter.`open(ExecutionContext executionContext)`
  `void`
  AbstractFileItemWriter.OutputState.`restoreFrom(ExecutionContext executionContext)`
  `void`
  AbstractFileItemWriter.`update(ExecutionContext executionContext)`
  `void`
  AbstractItemCountingItemStreamItemReader.`update(ExecutionContext executionContext)`
  `void`
  CompositeItemStream.`update(ExecutionContext executionContext)`
  Simple aggregate `ExecutionContext` provider for the contributions registered under the given key.
  `void`
  CompositeItemWriter.`update(ExecutionContext executionContext)`
  `void`
  SingleItemPeekableItemReader.`update(ExecutionContext executionContext)`
  If there is a cached peek, then retrieve the execution context state from that point.
  `void`
  SynchronizedItemStreamReader.`update(ExecutionContext executionContext)`
  `void`
  SynchronizedItemStreamWriter.`update(ExecutionContext executionContext)`

- ## Uses of ExecutionContext in org.springframework.batch.item.xml

  Methods in org.springframework.batch.item.xml with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `void`
  StaxEventItemWriter.`open(ExecutionContext executionContext)`
  Open the output source
  `void`
  StaxEventItemWriter.`update(ExecutionContext executionContext)`
  Get the restart data.

- ## Uses of ExecutionContext in org.springframework.batch.test

  Methods in org.springframework.batch.test with parameters of type ExecutionContext
  Modifier and Type
  Method
  Description
  `static StepExecution`
  MetaDataInstanceFactory.`createStepExecution(JobParameters jobParameters, ExecutionContext executionContext)`
  Create a `StepExecution` and all its parent entities with default values, but using the `ExecutionContext` and `JobParameters` provided.
  `static StepExecution`
  MetaDataInstanceFactory.`createStepExecution(ExecutionContext executionContext)`
  Create a `StepExecution` and all its parent entities with default values, but using the `ExecutionContext` provided.
  `JobExecution`
  JobLauncherTestUtils.`launchStep(String stepName, JobParameters jobParameters, ExecutionContext jobExecutionContext)`
  Launch just the specified step in the job.
  `JobExecution`
  JobLauncherTestUtils.`launchStep(String stepName, ExecutionContext jobExecutionContext)`
  Launch just the specified step in the job.
  `JobExecution`
  StepRunner.`launchStep(Step step, JobParameters jobParameters, ExecutionContext jobExecutionContext)`
  Launch just the specified step as its own job.
  `JobExecution`
  StepRunner.`launchStep(Step step, ExecutionContext jobExecutionContext)`
  Launch just the specified step as its own job.