Class ModuleXmlParser

    • 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
        Parse a module.xml file.
        Parameters:
        moduleLoader - the module loader to use for dependency specifications
        moduleIdentifier - the module identifier of the module to load
        root - the module path root
        moduleInfoFile - the File of the module.xml content
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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 a module.xml file.
        Parameters:
        moduleLoader - the module loader to use for dependency specifications
        moduleName - the name of the module to load
        root - the module path root
        moduleInfoFile - the File of the module.xml content
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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 a module.xml file.
        Parameters:
        factory - the resource root factory to use (must not be null)
        moduleLoader - the module loader to use for dependency specifications
        moduleName - the name of the module to load
        root - the module path root
        moduleInfoFile - the File of the module.xml content
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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
        Parse a module.xml file.
        Parameters:
        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 load
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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 a module.xml file.
        Parameters:
        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 load
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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
        Parse a module.xml file.
        Parameters:
        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 load
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.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 a module.xml file.
        Parameters:
        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 load
        Returns:
        a module specification
        Throws:
        ModuleLoadException - if a dependency could not be established or another error occurs
        java.io.IOException - if I/O fails