public final class JobParser extends Object
Constructor and Description |
---|
JobParser() |
Modifier and Type | Method and Description |
---|---|
static BatchArtifacts |
parseBatchArtifacts(InputStream inputStream)
Parses batch.xml, which declares batch artifacts in xml format.
|
static Job |
parseJob(InputStream inputStream,
ClassLoader classLoader,
XMLResolver xmlResolver)
Parses a job xml input stream, which defines a batch job.
|
public static Job parseJob(InputStream inputStream, ClassLoader classLoader, XMLResolver xmlResolver) throws XMLStreamException
inputStream
- the input source of the job xml definitionclassLoader
- the current application class loaderxmlResolver
- the javax.xml.stream.XMLResolver
for the job xml,
typically obtained from org.jberet.spi.BatchEnvironment#getJobXmlResolver()
Job
from parsing the input sourceXMLStreamException
- if failed to parse the input sourceBatchEnvironment.getJobXmlResolver()
public static BatchArtifacts parseBatchArtifacts(InputStream inputStream) throws XMLStreamException
inputStream
- source of the batch.xmlBatchArtifacts
object from parsing the input sourceXMLStreamException
- if failed to parse the input sourceCopyright © 2015 JBoss by Red Hat. All rights reserved.