| When I looked for the method-based injection for @BetchProperty, I checked the two implementations, JBeret and JBatch. Unfortunately, I didn't find any example about such usage. All the examples related to @batchProperty are attribute-based injections. It means that it's not preferable to use injection via setter method for instance, at least in this ticket. (Maybe we can ask it for the spec 2.0?) Therefore, I'll use an alternative solution: use a job-scoped listener to deserialize all the parameters before the job start. It should validate all the parameters, given by user or default ones, and throws an exception if any validation error occurs. |