commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Diermann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SANDBOX-463) Implementation of property paths
Date Sat, 08 Mar 2014 10:16:42 GMT
Andre Diermann created SANDBOX-463:
--------------------------------------

             Summary: Implementation of property paths 
                 Key: SANDBOX-463
                 URL: https://issues.apache.org/jira/browse/SANDBOX-463
             Project: Commons Sandbox
          Issue Type: Improvement
          Components: BeanUtils2
            Reporter: Andre Diermann


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] http://markmail.org/message/pv2qpr7em4ftnulj



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message