You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/05/01 23:20:10 UTC
[jira] (MPLUGIN-259) @Parameter name="xxx" to set bean property
name different from class' field
[ https://jira.codehaus.org/browse/MPLUGIN-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MPLUGIN-259:
----------------------------------
Description:
feature existed in version 2.9 as
{code}/**
* @parameter property="beanPropertyName"
*/
private String fieldName;{code}
and permitted to have bean getters/setters with different name
{code}public String getBeanPropertyName() { return fieldName; }
public void setBeanPropertyName( String aValue ) { this.fieldName = aValue }{code}
but was removed in MPLUGIN-199 to reuse the "property" definition with different meaning (see MPLUGIN-196)
could be reintroduced both as javadoc annotation:
{code}/**
* @parameter name="beanPropertyName"
*/
private String fieldName;{code}
and java 5 annotation:
{code}@Parameter name="beanPropertyName"
private String fieldName;{code}
was:
feature existed in version 2.9 as
{code}/**
* @parameter property="beanPropertyName"
*/
private String fieldName;{code}
but was removed in MPLUGIN-199 to reuse the "property" definition with different meaning (see MPLUGIN-196)
could be reintroduced both as javadoc annotation:
{code}/**
* @parameter name="beanPropertyName"
*/
private String fieldName;{code}
and java 5 annotation:
{code}@Parameter name="beanPropertyName"
private String fieldName;{code}
> @Parameter name="xxx" to set bean property name different from class' field
> ---------------------------------------------------------------------------
>
> Key: MPLUGIN-259
> URL: https://jira.codehaus.org/browse/MPLUGIN-259
> Project: Maven Plugin Tools
> Issue Type: New Feature
> Components: maven-plugin-tools-annotations, maven-plugin-tools-javadoc
> Affects Versions: 3.0, 3.2
> Reporter: Herve Boutemy
>
> feature existed in version 2.9 as
> {code}/**
> * @parameter property="beanPropertyName"
> */
> private String fieldName;{code}
> and permitted to have bean getters/setters with different name
> {code}public String getBeanPropertyName() { return fieldName; }
> public void setBeanPropertyName( String aValue ) { this.fieldName = aValue }{code}
> but was removed in MPLUGIN-199 to reuse the "property" definition with different meaning (see MPLUGIN-196)
> could be reintroduced both as javadoc annotation:
> {code}/**
> * @parameter name="beanPropertyName"
> */
> private String fieldName;{code}
> and java 5 annotation:
> {code}@Parameter name="beanPropertyName"
> private String fieldName;{code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)