You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2012/09/23 19:20:19 UTC
Lombok and Isis (was: Re: Stuck on using JDO object store.)
On 22 September 2012 11:18, Minto van der Sluis <mi...@xup.nl> wrote:
>
> PS. Regarding code formatting I prefer my own formatting (me being
> stubborn ;-) which is consistent over my isis and not isis projects. But
> thanks for the tip anyways. To reduce boilerplate (getters and setters)
> I mostly use Lombok.
>
>
Interesting. I did a blog post on Lombok a while [1] (the screencast link
now seems to have died, oh well). But one thing that prevents us from
really reducing boilerplate with Lombok (unless you know better?) is that
Isis searches for annotations on the getters, not on the fields.
I guess it'd be easy enough to enhance all of the FacetFactories to search
for their annotations on the field as well as on the getter. Is Lombok
used enough to justify the effort, though, I ask myself?
Cheers
Dan
[1]
http://danhaywood.com/2009/09/13/using-project-lombok-with-naked-objects/
Re: Lombok and Isis (was: Re: Stuck on using JDO object store.)
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Yeah, I think it would make sense.
I've created ISIS-273 [1] for this idea.
Don't intend to work on it myself, but worth capturing, I think.
[1] https://issues.apache.org/jira/browse/ISIS-273
On 25 September 2012 10:56, <mi...@xup.nl> wrote:
> Hi Dan,
>
> Maybe you're right that is not enough for just Lombok.
>
> However in one of the project goals I read something about Isis support
> for other JVM languages. In that case it might make sense to have support
> for annotations on fields as well.
>
> What do you think?
>
> Regards,
>
> Minto
>
>
>
> Quoting Dan Haywood <da...@haywood-associates.co.uk>**:
>
> On 22 September 2012 11:18, Minto van der Sluis <mi...@xup.nl> wrote:
>>
>>
>>> PS. Regarding code formatting I prefer my own formatting (me being
>>> stubborn ;-) which is consistent over my isis and not isis projects. But
>>> thanks for the tip anyways. To reduce boilerplate (getters and setters)
>>> I mostly use Lombok.
>>>
>>>
>>> Interesting. I did a blog post on Lombok a while [1] (the screencast
>> link
>> now seems to have died, oh well). But one thing that prevents us from
>> really reducing boilerplate with Lombok (unless you know better?) is that
>> Isis searches for annotations on the getters, not on the fields.
>>
>> I guess it'd be easy enough to enhance all of the FacetFactories to search
>> for their annotations on the field as well as on the getter. Is Lombok
>> used enough to justify the effort, though, I ask myself?
>>
>> Cheers
>> Dan
>>
>>
>> [1]
>> http://danhaywood.com/2009/09/**13/using-project-lombok-with-**
>> naked-objects/<http://danhaywood.com/2009/09/13/using-project-lombok-with-naked-objects/>
>>
>>
>
>
Re: Lombok and Isis (was: Re: Stuck on using JDO object store.)
Posted by mi...@xup.nl.
Hi Dan,
Maybe you're right that is not enough for just Lombok.
However in one of the project goals I read something about Isis
support for other JVM languages. In that case it might make sense to
have support for annotations on fields as well.
What do you think?
Regards,
Minto
Quoting Dan Haywood <da...@haywood-associates.co.uk>:
> On 22 September 2012 11:18, Minto van der Sluis <mi...@xup.nl> wrote:
>
>>
>> PS. Regarding code formatting I prefer my own formatting (me being
>> stubborn ;-) which is consistent over my isis and not isis projects. But
>> thanks for the tip anyways. To reduce boilerplate (getters and setters)
>> I mostly use Lombok.
>>
>>
> Interesting. I did a blog post on Lombok a while [1] (the screencast link
> now seems to have died, oh well). But one thing that prevents us from
> really reducing boilerplate with Lombok (unless you know better?) is that
> Isis searches for annotations on the getters, not on the fields.
>
> I guess it'd be easy enough to enhance all of the FacetFactories to search
> for their annotations on the field as well as on the getter. Is Lombok
> used enough to justify the effort, though, I ask myself?
>
> Cheers
> Dan
>
>
> [1]
> http://danhaywood.com/2009/09/13/using-project-lombok-with-naked-objects/
>