Class NoOpEnvironmentVariablesProvider

java.lang.Object
org.springframework.cloud.task.batch.partition.NoOpEnvironmentVariablesProvider
All Implemented Interfaces:
EnvironmentVariablesProvider

public class NoOpEnvironmentVariablesProvider extends Object implements EnvironmentVariablesProvider
A simple no-op implementation of the EnvironmentVariablesProvider. It returns an empty Map.
Since:
1.0.2
Author:
Michael Minella
  • Constructor Details

    • NoOpEnvironmentVariablesProvider

      public NoOpEnvironmentVariablesProvider()
  • Method Details

    • getEnvironmentVariables

      public Map<String,String> getEnvironmentVariables(org.springframework.batch.item.ExecutionContext executionContext)
      Description copied from interface: EnvironmentVariablesProvider
      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.
      Specified by:
      getEnvironmentVariables in interface EnvironmentVariablesProvider
      Parameters:
      executionContext - the ExecutionContext associated with the worker's step
      Returns:
      an empty Map