
public final class JobMerger extends Object
AbstractMerger,
StepMerger,
FlowMerger| Modifier and Type | Method and Description |
|---|---|
void |
merge()
Performs the merge, and if the parent job has its own parent, it is also resolved.
|
static void |
resolveInheritance(Job job,
ClassLoader classLoader,
List<Job> loadedJobs,
JobXmlResolver jobXmlResolver)
The main entry point to resolve JSL inheritance for a job, including any inheritance in its sub-elements.
|
public static void resolveInheritance(Job job, ClassLoader classLoader, List<Job> loadedJobs, JobXmlResolver jobXmlResolver) throws javax.batch.operations.JobStartException
job - the job to resolve its JSL inheritanceclassLoader - the class loader to use for loading jobs and resourcesloadedJobs - list of already loaded jobs to avoid reloading them while resolving inheritancejobXmlResolver - job xml resolver, typically obtained from org.jberet.spi.BatchEnvironment#getJobXmlResolver()javax.batch.operations.JobStartException - if failed to resolve the job's inheritancepublic void merge()
throws javax.batch.operations.JobStartException
resolveInheritance(Job, ClassLoader, List, JobXmlResolver)javax.batch.operations.JobStartException - if failed due to cyclic inheritance or other errorsCopyright © 2016 JBoss by Red Hat. All rights reserved.