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

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

With modern annotations, the default parameter name is only the field name. The 
legacy support module generates the class+field name combination what was used 
in the legacy uimaFIT, so nothing should break for applications that use the 
legacy annotations.
                
> @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
>            Assignee: Richard Eckart de Castilho
>             Fix For: 2.0.0uimaFIT
>
>
> 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

Reply via email to