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 <T> T |
loadJobXml(String jobName,
Class<T> rootType,
ClassLoader classLoader)
Gets the root element, either of type Job or Step, for a given job or step 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.JobStartExceptionpublic static <T> T loadJobXml(String jobName, Class<T> rootType, ClassLoader classLoader) throws javax.batch.operations.JobStartException
T - Job or StepjobName - base name of the job xml documentrootType - Job.class or Step.classjavax.batch.operations.JobStartExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.