commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Diermann (JIRA)" <>
Subject [jira] [Commented] (SANDBOX-463) Implementation of property paths
Date Tue, 11 Mar 2014 16:47:43 GMT


Andre Diermann commented on SANDBOX-463:

Thank you Bernd. I think I should rework the syntax for valid map keys and make it less strict!

I am currently evaluating OGNL - unfortunately I was not aware of this before :((((

Do you have a good picture of OGNL? What do you think? Maybe it already does what we are looking

> Implementation of property paths 
> ---------------------------------
>                 Key: SANDBOX-463
>                 URL:
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: BeanUtils2
>            Reporter: Andre Diermann
>         Attachments: Commons-Sandbox-463#2.patch, Commons-Sandbox-463.patch
> In [1] Benedikt Ritter mentioned the lag of BU1's property path for BU2.
> The attached patch contains an implementation of a PropertyInterpreter - following the
GOF Interpreter Pattern - which is able to interpret simple/index/mapped/nested properties
and any combination of it. The result is a BeanAccessor. The idea is to use the PropertyInterpreter
inside of a BeanAccessor implementation.
> The patch also contains a corresponding test case.
> Example:
> on( anyBean ).set( "contact[15].address(home).street" ).with( "Example Street 1000" );
> [1]

This message was sent by Atlassian JIRA

View raw message