juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bognar <james.bog...@salesforce.com>
Subject Re: Adding BeanProperty to constructor arguments
Date Mon, 09 Jan 2017 14:08:42 GMT
Hi John,

Do you mean adding an index property on the @BeanProperty annotation that
denotes it's constructor parameter index?

@BeanProperty(constructorIndex=0)
public int foo();

@BeanProperty(constructorIndex=1)
public String bar();



On Sun, Jan 8, 2017 at 9:39 PM, John D. Ament <johndament@apache.org> wrote:

> Hi,
>
> I was wondering if there was a reason (or maybe equivalent) to using
> @BeanProperty on a constructor argument?  This way on BeanConstructor
> instead of having to list the ordered arguments, the annotation could be
> used to say which field it covered.
>
> John
>



-- 
James Bognar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message