Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-463

Implementation of property paths

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BeanUtils2
    • Labels:
      None

      Description

      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

        Attachments

        1. Commons-Sandbox-463.patch
          8 kB
          Andre Diermann
        2. Commons-Sandbox-463#2.patch
          10 kB
          Andre Diermann
        3. Commons-Sandbox-463#3.patch
          12 kB
          Andre Diermann

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andd Andre Diermann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: