类 ExecutionContextUserSupport
- java.lang.Object
- org.springframework.batch.item.util.ExecutionContextUserSupport
public class ExecutionContextUserSupport extends java.lang.Object
Facilitates assigning names to objects persisting data inExecutionContext
and generating keys forExecutionContext
based on the name.- 作者:
- Robert Kasanicky
构造器概要
构造器 构造器 说明 ExecutionContextUserSupport()
ExecutionContextUserSupport(java.lang.String name)
构造器详细资料
ExecutionContextUserSupport
public ExecutionContextUserSupport()
ExecutionContextUserSupport
public ExecutionContextUserSupport(java.lang.String name)
方法详细资料
getName
protected java.lang.String getName()
- 返回:
- name used to uniquely identify this instance's entries in shared context.
setName
public void setName(java.lang.String name)
- 参数:
name
- unique name used to create execution context keys.
getKey
public java.lang.String getKey(java.lang.String suffix)
Prefix the argument withgetName()
to create a unique key that can be safely used to identify data stored inExecutionContext
.- 参数:
suffix
-String
to be used to generate the key.- 返回:
- the key that was generated based on the name and the suffix.