Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-8

Externalize ResourceLoader from ModuleXMLParser

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 1.0.0.Beta1
    • None
    • None
    • None

      Currently the ModuleXMLParser expects resources to be available on the file system. Clients currently call this API

      static ModuleSpec parse(final ModuleIdentifier identifier, final File root, final File moduleInfoFile) throws ModuleLoadException

      We already have an abstraction of a ResourceLoader.

      It would be possible to provide a parser API that is agnostic of how to create ResourceLoaders. Instead the parser could be given a

      public interface ResourceLoaderFactory

      { ResourceLoader getResourceLoader(String path, String name) throws IOException; }

            dlloyd@redhat.com David Lloyd
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: