Interface JobParametersConverter
- All Known Implementing Classes:
DefaultJobParametersConverter
,JsonJobParametersConverter
public interface JobParametersConverter
A factory for
JobParameters
instances. A job can be executed with many possible
runtime parameters, which identify the instance of the job. This converter lets job
parameters be converted to and from properties.- Author:
- Dave Syer, Mahmoud Ben Hassine
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetJobParameters
(Properties properties) Get a newJobParameters
instance.getProperties
(JobParameters params) The inverse operation: get aProperties
instance.
-
Method Details
-
getJobParameters
Get a newJobParameters
instance. If given null or an empty properties, an empty JobParameters is returned.- Parameters:
properties
- The runtime parameters in the form of String literals.- Returns:
- a
JobParameters
object converted to the correct types.
-
getProperties
The inverse operation: get aProperties
instance. If given null or emptyJobParameters
, an emptyProperties
should be returned.- Parameters:
params
- TheJobParameters
instance to be converted.- Returns:
- a representation of the parameters as properties.
-