Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-259

@Parameter name="xxx" to set bean property name different from class' field

    XMLWordPrintableJSON

Details

    Description

      feature existed in version 2.9 as

      /**
       * @parameter property="beanPropertyName"
       */
      private String fieldName;

      and permitted to have bean getters/setters with different name

      public String getBeanPropertyName() { return fieldName; }
      public void setBeanPropertyName( String aValue ) { this.fieldName = aValue }

      but was removed in MPLUGIN-199 to reuse the "property" definition with different meaning (see MPLUGIN-196)

      could be reintroduced both as javadoc annotation:

      /**
       * @parameter name="beanPropertyName"
       */
      private String fieldName;

      and java 5 annotation:

      @Parameter name="beanPropertyName"
      private String fieldName;

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: