public final class ModuleXmlParser extends Object
module.xml parser.| Modifier and Type | Class | Description |
|---|---|---|
static interface |
ModuleXmlParser.ResourceRootFactory |
A factory for resource roots, based on a root path, loader path, and loader name.
|
@Deprecated public static ModuleSpec parseModuleXml(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, File root, File moduleInfoFile) throws ModuleLoadException, IOException
parseModuleXml(ModuleLoader, String, File, File) instead.module.xml file.moduleLoader - the module loader to use for dependency specificationsmoduleIdentifier - the module identifier of the module to loadroot - the module path rootmoduleInfoFile - the File of the module.xml contentModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O failspublic static ModuleSpec parseModuleXml(ModuleLoader moduleLoader, String moduleName, File root, File moduleInfoFile) throws ModuleLoadException, IOException
module.xml file.moduleLoader - the module loader to use for dependency specificationsmoduleName - the name of the module to loadroot - the module path rootmoduleInfoFile - the File of the module.xml contentModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O failspublic static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, ModuleLoader moduleLoader, String moduleName, File root, File moduleInfoFile) throws ModuleLoadException, IOException
module.xml file.factory - the resource root factory to use (must not be null)moduleLoader - the module loader to use for dependency specificationsmoduleName - the name of the module to loadroot - the module path rootmoduleInfoFile - the File of the module.xml contentModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O fails@Deprecated public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) throws ModuleLoadException, IOException
parseModuleXml(ResourceRootFactory, String, InputStream, String, ModuleLoader, String) instead.module.xml file.factory - the resource root factory to use (must not be null)rootPath - the root path to send in to the resource root factory (must not be null)source - a stream of the module.xml content (must not be null)moduleInfoFile - the File of the module.xml content (must not be null)moduleLoader - the module loader to use for dependency specifications (must not be null)moduleIdentifier - the module identifier of the module to loadModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O failspublic static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, String moduleName) throws ModuleLoadException, IOException
module.xml file.factory - the resource root factory to use (must not be null)rootPath - the root path to send in to the resource root factory (must not be null)source - a stream of the module.xml content (must not be null)moduleInfoFile - the File of the module.xml content (must not be null)moduleLoader - the module loader to use for dependency specifications (must not be null)moduleName - the module name of the module to loadModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O fails@Deprecated public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) throws ModuleLoadException, IOException
parseModuleXml(ResourceRootFactory, MavenResolver, String, InputStream, String, ModuleLoader, String) instead.module.xml file.factory - the resource root factory to use (must not be null)mavenResolver - the Maven artifact resolver to use (must not be null)rootPath - the root path to send in to the resource root factory (must not be null)source - a stream of the module.xml content (must not be null)moduleInfoFile - the File of the module.xml content (must not be null)moduleLoader - the module loader to use for dependency specifications (must not be null)moduleIdentifier - the module identifier of the module to loadModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O failspublic static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, String rootPath, InputStream source, String moduleInfoFile, ModuleLoader moduleLoader, String moduleName) throws ModuleLoadException, IOException
module.xml file.factory - the resource root factory to use (must not be null)mavenResolver - the Maven artifact resolver to use (must not be null)rootPath - the root path to send in to the resource root factory (must not be null)source - a stream of the module.xml content (must not be null)moduleInfoFile - the File of the module.xml content (must not be null)moduleLoader - the module loader to use for dependency specifications (must not be null)moduleName - the module name of the module to loadModuleLoadException - if a dependency could not be established or another error occursIOException - if I/O failspublic static XmlPullParserException unexpectedContent(XmlPullParser reader)
public static XmlPullParserException endOfDocument(XmlPullParser reader)
Copyright © 2018 JBoss by Red Hat. All rights reserved.