接口 JobParametersConverter
public interface JobParametersConverter
A factory forJobParameters
instances. A job can be executed with many possible runtime parameters, which identify the instance of the job. This converter allows job parameters to be converted to and from Properties.- 作者:
- Dave Syer, Mahmoud Ben Hassine
- 另请参阅:
JobParametersBuilder
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 JobParameters
getJobParameters(java.util.Properties properties)
Get a newJobParameters
instance.java.util.Properties
getProperties(JobParameters params)
The inverse operation: get aProperties
instance.
方法详细资料
getJobParameters
JobParameters getJobParameters(@Nullable java.util.Properties properties)
Get a newJobParameters
instance. If given null, or an empty properties, an empty JobParameters will be returned.- 参数:
properties
- the runtime parameters in the form of String literals.- 返回:
- a
JobParameters
properties converted to the correct types.
getProperties
java.util.Properties getProperties(@Nullable JobParameters params)
The inverse operation: get aProperties
instance. If given null or empty JobParameters, an empty Properties should be returned.- 参数:
params
- theJobParameters
instance to be converted.- 返回:
- a representation of the parameters as properties