uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-2903) List resources in a ResourceManager / remove hack in uimaFIT
Date Wed, 01 Aug 2018 23:00:00 GMT

    [ https://issues.apache.org/jira/browse/UIMA-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566122#comment-16566122
] 

ASF GitHub Bot commented on UIMA-2903:
--------------------------------------

reckart opened a new pull request #28: [UIMA-2903] List resources in a ResourceManager / remove
hack in uimaFIT
URL: https://github.com/apache/uima-uimafit/pull/28
 
 
   Finally removed the hack.
   
   https://issues.apache.org/jira/browse/UIMA-2903

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> List resources in a ResourceManager / remove hack in uimaFIT
> ------------------------------------------------------------
>
>                 Key: UIMA-2903
>                 URL: https://issues.apache.org/jira/browse/UIMA-2903
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework, uimaFIT
>            Reporter: Richard Eckart de Castilho
>            Priority: Major
>              Labels: Resources
>             Fix For: 3.0.0uimaFIT, 2.5.0uimaFIT
>
>
> 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:
> # add a listResources() method to the ResourceManager interface
> # 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?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message