Class ExecutionContextUserSupport
java.lang.Object
org.springframework.batch.item.util.ExecutionContextUserSupport
Facilitates assigning names to objects persisting data in
ExecutionContext
and
generating keys for ExecutionContext
based on the name.- Author:
- Robert Kasanicky
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ExecutionContextUserSupport
public ExecutionContextUserSupport() -
ExecutionContextUserSupport
-
-
Method Details
-
getName
- Returns:
- name used to uniquely identify this instance's entries in shared context.
-
setName
- Parameters:
name
- unique name used to create execution context keys.
-
getKey
Prefix the argument withgetName()
to create a unique key that can be safely used to identify data stored inExecutionContext
.- Parameters:
suffix
-String
to be used to generate the key.- Returns:
- the key that was generated based on the name and the suffix.
-