juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JUNEAU-29) Replace @BeanConstructor with @BeanParameter annotations.
Date Sat, 01 Dec 2018 20:23:00 GMT

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

James Bognar commented on JUNEAU-29:
------------------------------------

[~Ayesh] - Go for it!

To clarify, the @BeanConstructor(properties) annotation must be a comma-delimited list of
property names that match the parameters in the constructor.  

I would recommend reusing the existing @BeanProperty annotation instead of introducing a new
@BeanParam annotation.  It already has a @BeanProperty(value) field for specifying a property
name of the form @BeanProperty("age").  The @BeanProperty annotation can currently only apply
to FIELD and METHOD targets, but you could extent it to be used on PARAMETER as well.

 

> Replace @BeanConstructor with @BeanParameter annotations.
> ---------------------------------------------------------
>
>                 Key: JUNEAU-29
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-29
>             Project: Juneau
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 6.1.0
>            Reporter: James Bognar
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message