Package org.springframework.cloud.task.batch.partition

# Interface EnvironmentVariablesProvider

All Known Implementing Classes:
  `NoOpEnvironmentVariablesProvider`, `SimpleEnvironmentVariablesProvider`

public interface EnvironmentVariablesProvider
Strategy interface to allow for advanced configuration of environment variables for each worker in a partitioned job.

Since:
  1.0.2
Author:
  Michael Minella

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String,String>`
  `getEnvironmentVariables(org.springframework.batch.item.ExecutionContext executionContext)`
  Provides a `Map` of Strings to be used as environment variables.

- ## Method Details

  - ### getEnvironmentVariables

    Map<String,String> getEnvironmentVariables(org.springframework.batch.item.ExecutionContext executionContext)
    Provides a `Map` of Strings to be used as environment variables. This method will be called for each worker step. For example, if there are 5 partitions, this method will be called 5 times.
    Parameters:
      `executionContext` - the `ExecutionContext` associated with the worker's step
    Returns:
      A `Map` of values to be used as environment variables