Package org.jboss.modules.xml
Class ModuleXmlParser
- java.lang.Object
-
- org.jboss.modules.xml.ModuleXmlParser
-
public final class ModuleXmlParser extends java.lang.ObjectA fast, validatingmodule.xmlparser.- Author:
- David M. Lloyd, thomas.diesler@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceModuleXmlParser.ResourceRootFactoryA factory for resource roots, based on a root path, loader path, and loader name.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XmlPullParserExceptionendOfDocument(XmlPullParser reader)static ModuleSpecparseModuleXml(ModuleLoader moduleLoader, java.lang.String moduleName, java.io.File root, java.io.File moduleInfoFile)Parse amodule.xmlfile.static ModuleSpecparseModuleXml(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, java.io.File root, java.io.File moduleInfoFile)Deprecated.UseparseModuleXml(ModuleLoader, String, File, File)instead.static ModuleSpecparseModuleXml(ModuleXmlParser.ResourceRootFactory factory, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, java.lang.String moduleName)Parse amodule.xmlfile.static ModuleSpecparseModuleXml(ModuleXmlParser.ResourceRootFactory factory, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier)Deprecated.static ModuleSpecparseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, java.lang.String moduleName)Parse amodule.xmlfile.static ModuleSpecparseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier)static ModuleSpecparseModuleXml(ModuleXmlParser.ResourceRootFactory factory, ModuleLoader moduleLoader, java.lang.String moduleName, java.io.File root, java.io.File moduleInfoFile)Parse amodule.xmlfile.static XmlPullParserExceptionunexpectedContent(XmlPullParser reader)
-
-
-
Method Detail
-
parseModuleXml
@Deprecated public static ModuleSpec parseModuleXml(ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier, java.io.File root, java.io.File moduleInfoFile) throws ModuleLoadException, java.io.IOException
Deprecated.UseparseModuleXml(ModuleLoader, String, File, File)instead.Parse amodule.xmlfile.- Parameters:
moduleLoader- the module loader to use for dependency specificationsmoduleIdentifier- the module identifier of the module to loadroot- the module path rootmoduleInfoFile- theFileof themodule.xmlcontent- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
public static ModuleSpec parseModuleXml(ModuleLoader moduleLoader, java.lang.String moduleName, java.io.File root, java.io.File moduleInfoFile) throws ModuleLoadException, java.io.IOException
Parse amodule.xmlfile.- Parameters:
moduleLoader- the module loader to use for dependency specificationsmoduleName- the name of the module to loadroot- the module path rootmoduleInfoFile- theFileof themodule.xmlcontent- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, ModuleLoader moduleLoader, java.lang.String moduleName, java.io.File root, java.io.File moduleInfoFile) throws ModuleLoadException, java.io.IOException
Parse amodule.xmlfile.- Parameters:
factory- the resource root factory to use (must not benull)moduleLoader- the module loader to use for dependency specificationsmoduleName- the name of the module to loadroot- the module path rootmoduleInfoFile- theFileof themodule.xmlcontent- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
@Deprecated public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) throws ModuleLoadException, java.io.IOException
Deprecated.Parse amodule.xmlfile.- Parameters:
factory- the resource root factory to use (must not benull)rootPath- the root path to send in to the resource root factory (must not benull)source- a stream of themodule.xmlcontent (must not benull)moduleInfoFile- theFileof themodule.xmlcontent (must not benull)moduleLoader- the module loader to use for dependency specifications (must not benull)moduleIdentifier- the module identifier of the module to load- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, java.lang.String moduleName) throws ModuleLoadException, java.io.IOException
Parse amodule.xmlfile.- Parameters:
factory- the resource root factory to use (must not benull)rootPath- the root path to send in to the resource root factory (must not benull)source- a stream of themodule.xmlcontent (must not benull)moduleInfoFile- theFileof themodule.xmlcontent (must not benull)moduleLoader- the module loader to use for dependency specifications (must not benull)moduleName- the module name of the module to load- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
@Deprecated public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, ModuleIdentifier moduleIdentifier) throws ModuleLoadException, java.io.IOException
Deprecated.Parse amodule.xmlfile.- Parameters:
factory- the resource root factory to use (must not benull)mavenResolver- the Maven artifact resolver to use (must not benull)rootPath- the root path to send in to the resource root factory (must not benull)source- a stream of themodule.xmlcontent (must not benull)moduleInfoFile- theFileof themodule.xmlcontent (must not benull)moduleLoader- the module loader to use for dependency specifications (must not benull)moduleIdentifier- the module identifier of the module to load- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
parseModuleXml
public static ModuleSpec parseModuleXml(ModuleXmlParser.ResourceRootFactory factory, MavenResolver mavenResolver, java.lang.String rootPath, java.io.InputStream source, java.lang.String moduleInfoFile, ModuleLoader moduleLoader, java.lang.String moduleName) throws ModuleLoadException, java.io.IOException
Parse amodule.xmlfile.- Parameters:
factory- the resource root factory to use (must not benull)mavenResolver- the Maven artifact resolver to use (must not benull)rootPath- the root path to send in to the resource root factory (must not benull)source- a stream of themodule.xmlcontent (must not benull)moduleInfoFile- theFileof themodule.xmlcontent (must not benull)moduleLoader- the module loader to use for dependency specifications (must not benull)moduleName- the module name of the module to load- Returns:
- a module specification
- Throws:
ModuleLoadException- if a dependency could not be established or another error occursjava.io.IOException- if I/O fails
-
unexpectedContent
public static XmlPullParserException unexpectedContent(XmlPullParser reader)
-
endOfDocument
public static XmlPullParserException endOfDocument(XmlPullParser reader)
-
-