Re: Type-safe property names?

33 views
Skip to first unread message

Uwe Schäfer

unread,
Jul 12, 2012, 11:30:09 AM7/12/12
to lam...@googlegroups.com
On 07/12/2012 12:47 PM, Kristof Jozsa wrote:

but can not find the propertyName() method in LambdaJ.. was it removed, renamed or what's the current approach to get this functionality?

ArgumentFactory is your friend. an example of using this in the wild (in this case wicket models) is here:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-LambdaJ

it should give you the idea.

cu uwe

Kristof Jozsa

unread,
Jul 12, 2012, 11:47:16 AM7/12/12
to lam...@googlegroups.com
great, argument(on(My.class).getMyProperty()).getInkvokedPropertyName() worked just fine. Mind the typo in the API though.. ("inkvoked").

thx,
K
Reply all
Reply to author
Forward
0 new messages