public interface JobXmlResolver
Both the getJobXmlNames(ClassLoader)
and resolveJobName(String, ClassLoader)
methods are optional.
The intention is implementations can use the values returned to query information about specific the job XML files.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATH
The default
META-INF/batch-jobs/ path. |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getJobXmlNames(ClassLoader classLoader)
Optionally returns a list of job XML names that are allowed to be used.
|
String |
resolveJobName(String jobXml,
ClassLoader classLoader)
Optionally resolves the job name from the job XML.
|
InputStream |
resolveJobXml(String jobXml,
ClassLoader classLoader)
Locates the job XML and creates a stream to the contents.
|
static final String DEFAULT_PATH
META-INF/batch-jobs/
path.InputStream resolveJobXml(String jobXml, ClassLoader classLoader) throws IOException
jobXml
- the name of the job XML with a .xml
suffixclassLoader
- the class loader for the applicationnull
if the job XML content was not foundIOException
- if an error occurs creating the streamCollection<String> getJobXmlNames(ClassLoader classLoader)
An empty collection should be returned if job names can not be resolved.
classLoader
- the class loader for the applicationString resolveJobName(String jobXml, ClassLoader classLoader)
A null
value can be returned if the name cannot be resolved.
jobXml
- the name of the xml XML with a .xml
suffixclassLoader
- the class loader for the applicationnull
if not foundCopyright © 2018 JBoss by Red Hat. All rights reserved.