concept job launch request in category spring
appears as: job launch request

This is an excerpt from Manning's book Spring Batch in Action.
Listing 11.1. Java representation of a job launch request
package com.manning.sbia.ch11.integration; import java.util.Collections; import java.util.HashMap; import java.util.Map; public class JobLaunchRequest { private String jobName; private Map<String,String> jobParameters; public JobLaunchRequest(String jobName) { this(jobName,Collections.EMPTY_MAP); } public JobLaunchRequest(String jobName, Map<String,String> jobParams) { super(); this.jobName = jobName; this.jobParameters = jobParams; } public String getJobName() { return jobName; } public Map<String,String> getJobParameters() { return jobParameters == null ? Collections.EMPTY_MAP : Collections.unmodifiableMap(jobParameters); } }