
public class ClassPathJobXmlResolver extends Object implements JobXmlResolver
DEFAULT_PATH| Constructor and Description |
|---|
ClassPathJobXmlResolver() |
| 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.
|
public InputStream resolveJobXml(String jobXml, ClassLoader classLoader) throws IOException
JobXmlResolverresolveJobXml in interface JobXmlResolverjobXml - 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 streampublic Collection<String> getJobXmlNames(ClassLoader classLoader)
JobXmlResolverAn empty collection should be returned if job names can not be resolved.
getJobXmlNames in interface JobXmlResolverclassLoader - the class loader for the applicationpublic String resolveJobName(String jobXml, ClassLoader classLoader)
JobXmlResolver
A null value can be returned if the name cannot be resolved.
resolveJobName in interface JobXmlResolverjobXml - the name of the xml XML with a .xml suffixclassLoader - the class loader for the applicationnull if not foundCopyright © 2016 JBoss by Red Hat. All rights reserved.