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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEnvironmentVariables
(org.springframework.batch.item.ExecutionContext executionContext) Provides aMap
of Strings to be used as environment variables.
-
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 aMap
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 interfaceEnvironmentVariablesProvider
- Parameters:
executionContext
- theExecutionContext
associated with the worker's step- Returns:
- an empty
Map
-