Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2903

List resources in a ResourceManager / remove hack in uimaFIT

    XMLWordPrintableJSON

Details

    Description

      uimaFIT currently gets a list of resources that are registered with a ResourceManager. This is handled via accessing the "mResourceMap" field of the ResourceManager_impl class via reflection. Obviously, this is not a good solution.

      uimaFIT iterates over the resources in the context while initializing resources that are referenced from other external resources.

      There may be two options:

      1. add a listResources() method to the ResourceManager interface
      2. get the resources that need to be initialized in some other way. I don't know if there is one, because if there was, I'd probably have used it. Looking at the @ExternalResource annotations doesn't help, because they do not give informations about the resource bindings. The bindings are only available in the ResourceManager, which takes us back to 1).

      Would it be possible to add a method allowing to list the resource bindings registered in a ResourceManager to the ResourceManager interface?

      Attachments

        Issue Links

          Activity

            People

              rec Richard Eckart de Castilho
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: