On Tue, Mar 30, 2010 at 23:10, Bryan Duxbury (JIRA) <[email protected]> wrote:
>
>     [ 
> https://issues.apache.org/jira/browse/THRIFT-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>  ]
>
> Bryan Duxbury updated THRIFT-663:
> ---------------------------------
>
>    Attachment: thrift-663.patch
>
> OK, how about this?
>
> The "beans" option will make sure the setter methods return void.
>
> The "private-members" option leaves the setter methods alone, but makes sure 
> the actual members are private. This is for those of us who want the builder 
> style setters but private instance variables.

Why not come out all the way and have a 'builder' option which would
create a Builder class which would do something similar as what J.
Bloch describes in Effective Java (@see
http://rwhansen.blogspot.com/2007/07/theres-builder-pattern-that-joshua.html)?

Reply via email to