Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2587

@ConfigurationParameter - name should default to name of annotated field without class name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0uimaFIT
    • uimaFIT
    • None

    Description

      Currently the name of an annotated field defaults to classname + "." + field. It should only default to "field".

      My code is littered with lines like:

      public static final String PARAM_SOME_PARAMETER = "someParameter";
      @ConfigurationParameter(name = PARAM_SOME_PARAMETER)
      private String someParameter;
      

      It would be nice to be able write something like:

      @ConfigurationParameter
      private String someParameter;
      
      AnalysisEngine ae = createPrimitive(MyAE.class, "someParameter", "someValue");
      

      More discussion on Google Code: https://code.google.com/p/uimafit/issues/detail?id=70

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: