You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2013/01/18 18:52:13 UTC

[jira] [Commented] (UIMA-2587) @ConfigurationParameter - name should default to name of annotated field without class name

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

Richard Eckart de Castilho commented on UIMA-2587:
--------------------------------------------------

With the legacy support implemented, it may be possible to implement this so that components annotated with modern annotations use the field name while fields annotated with legacy annotations use the class+field name.
                
> @ConfigurationParameter - name should default to name of annotated field without class name
> -------------------------------------------------------------------------------------------
>
>                 Key: UIMA-2587
>                 URL: https://issues.apache.org/jira/browse/UIMA-2587
>             Project: UIMA
>          Issue Type: Improvement
>          Components: uimafit
>            Reporter: Richard Eckart de Castilho
>
> Currently the name of an annotated field defaults to classname + "." + field. It should only default to "field".
> My code is littered with lines like:
> {code}
> public static final String PARAM_SOME_PARAMETER = "someParameter";
> @ConfigurationParameter(name = PARAM_SOME_PARAMETER)
> private String someParameter;
> {code}
> It would be nice to be able write something like:
> {code}
> @ConfigurationParameter
> private String someParameter;
> AnalysisEngine ae = createPrimitive(MyAE.class, "someParameter", "someValue");
> {code}
> More discussion on Google Code: https://code.google.com/p/uimafit/issues/detail?id=70

--
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