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] [Work logged] (UIMA-6214) Method signature clash in ExternalResourceFactory
Date Fri, 10 Apr 2020 15:28:00 GMT

     [ https://issues.apache.org/jira/browse/UIMA-6214?focusedWorklogId=420266&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-420266
]

ASF GitHub Bot logged work on UIMA-6214:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Apr/20 15:27
            Start Date: 10/Apr/20 15:27
    Worklog Time Spent: 10m 
      Work Description: reckart commented on pull request #97: [UIMA-6214] Method signature
clash in external resource factory
URL: https://github.com/apache/uima-uimafit/pull/97
 
 
   - Renamed and deprecated methods to resolve signature clashes
   - Documented changes in the migratin guide
   - Updated version in README file
   - Unit test for UIMA-6214 by @mjunsilo
   
   **JIRA Ticket:** https://issues.apache.org/jira/browse/UIMA-6214
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 420266)
    Remaining Estimate: 0h
            Time Spent: 10m

> Method signature clash in ExternalResourceFactory
> -------------------------------------------------
>
>                 Key: UIMA-6214
>                 URL: https://issues.apache.org/jira/browse/UIMA-6214
>             Project: UIMA
>          Issue Type: Bug
>          Components: uimaFIT
>    Affects Versions: 3.0.0uimaFIT
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 3.1.0uimaFIT
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The renaming of methods in the ExternalResourceFactory between uimaFIT v2 and v3 was
designed to remove ambiguities between the method signatures. However, it has introduced a
new set of ambiguities...
> There are a few methods meant do bind a resource to one particular thing (resource manager,
component, other resource)
> * {{void bindResource(ResourceCreationSpecifier aDesc, String aBindTo, ExternalResourceDescription
aRes)}}
> * {{void bindResource(ResourceCreationSpecifier aDesc, String aBindTo, String aRes)}}
> * {{void bindResource(ResourceManagerConfiguration aResMgrCfg, String aBindTo, String
aRes)}}
> * {{void bindResource(ExternalResourceDescription aRes, String aBindTo, ExternalResourceDescription
aNestedRes)}}
> * {{void bindResource(ResourceManagerConfiguration aResMgrCfg, String aBindTo, ExternalResourceDescription
aRes)}}
> Then, there is another bunch of methods meant to scan objects recursively and bind resources
wherever applicable:
> * {{void bindResource(ResourceSpecifier aDesc, String aKey, ExternalResourceDescription
aResDesc)}}
> * {{void bindResource(ResourceSpecifier aDesc, String aKey, String aUrl)}}
> * {{void bindResource(ResourceSpecifier aDesc, Class<? extends Resource> aRes,
String... aParams)}}
> * {{void bindResource(ResourceSpecifier aDesc, Class<?> aApi, Class<? extends
Resource> aRes, String... aParams)}}
> * {{void bindResource(ResourceSpecifier aDesc, ExternalResourceDescription aResDesc)}}
> * {{void bindResource(ResourceSpecifier aDesc, String aKey, Class<? extends Resource>
aRes, String... aParams)}}
> * {{void bindResource(ResourceSpecifier aDesc, String aKey, File aFile)}}
> * {{void bindResource(ResourceSpecifier aDesc, String aKey, URL aUrl)}}
> * {{void bindResourceUsingUrl(ResourceSpecifier aDesc, Class<? extends SharedResourceObject>
aRes, String aUrl, Object... aParams)}}
> * {{void bindResourceUsingUrl(ResourceSpecifier aDesc, Class<?> aApi, Class<?
extends SharedResourceObject> aRes, String aUrl, Object... aParams)}}
> * {{void bindResourceUsingUrl(ResourceSpecifier aDesc, String aKey, Class<? extends
SharedResourceObject> aRes, String aUrl, Object... aParams)}}
> There is in particular a conflict between these pairs because {{ResourceCreationSpecifier}}
is a subclass of {{ResourceSpecifier}}
> *Pair 1*
> * bind specifically: {{void bindResource(ResourceCreationSpecifier aDesc, String aBindTo,
ExternalResourceDescription aRes)}}
> * scan recursively: {{void bindResource(ResourceSpecifier aDesc, String aKey, ExternalResourceDescription
aResDesc)}}
> *Pair 2*
> * bind specifically: {{void bindResource(ResourceCreationSpecifier aDesc, String aBindTo,
String aRes)}}
> * scan recursively: {{void bindResource(ResourceSpecifier aDesc, String aKey, String
aUrl)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message