You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2013/08/22 22:55:51 UTC

[jira] [Created] (UIMA-3209) cleanup "additional parameters"

Marshall Schor created UIMA-3209:
------------------------------------

             Summary: cleanup "additional parameters"
                 Key: UIMA-3209
                 URL: https://issues.apache.org/jira/browse/UIMA-3209
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
    Affects Versions: 2.4.2SDK
            Reporter: Marshall Schor
            Priority: Minor


Many user-facing APIs have a parameter, called additional parameters, which is a Map, for passing additional, arbitrary parameters.

These APIs are often associated with user-facing interfaces, and have static final String constants that name the "keys" for these parameters.

The placement of these static final String constants is not consistent.  For example, there are duplicates ( both Resource and AnalysisEngine interfaces define "PARAM_CONFIG_PARAM_SETTINGS" ).  It's probably worth checking to see if there are any missing, and if they are defined at the "right level".  My guess is that moving these may break some user code; if so, I'd say it isn't worth removing misplaced ones.  But I would add missing ones at the "right level", and make all other instances have their definition set to the the "master" (the one defined at the right level), so there's no doubt that duplicates are intended to have the same exact definition.

The right level, I think, in a hierarchy of interface definitions, is the highest point for which the parameter makes sense (but not higher).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira