public class ArchiveXmlLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVE_BATCH_XML |
static String |
ARCHIVE_JOB_XML_DIR |
Constructor and Description |
---|
ArchiveXmlLoader() |
Modifier and Type | Method and Description |
---|---|
static BatchArtifacts |
loadBatchXml(ClassLoader classLoader)
Gets the batch artifacts definition object, loaded from the archive batch.xml if available.
|
static Job |
loadJobXml(String jobXmlName,
ClassLoader classLoader,
List<Job> loadedJobs,
JobXmlResolver jobXmlResolver)
Gets the job root element for a given job name.
|
public static final String ARCHIVE_JOB_XML_DIR
public static final String ARCHIVE_BATCH_XML
public static BatchArtifacts loadBatchXml(ClassLoader classLoader) throws javax.batch.operations.JobStartException
classLoader
- the application classloader used to load batch xmljavax.batch.operations.JobStartException
public static Job loadJobXml(String jobXmlName, ClassLoader classLoader, List<Job> loadedJobs, JobXmlResolver jobXmlResolver) throws javax.batch.operations.JobStartException
jobXmlName
- base name of the job xml documentclassLoader
- the class loader used to locate the jobloadedJobs
- a collections of jobs that have already been loadedjobXmlResolver
- the job XML resolverjavax.batch.operations.JobStartException
- if the job failed to startCopyright © 2015 JBoss by Red Hat. All rights reserved.