Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E5CACD8A for ; Wed, 12 Mar 2014 19:20:59 +0000 (UTC) Received: (qmail 92603 invoked by uid 500); 12 Mar 2014 19:20:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 92387 invoked by uid 500); 12 Mar 2014 19:20:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 92110 invoked by uid 99); 12 Mar 2014 19:20:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2014 19:20:45 +0000 Date: Wed, 12 Mar 2014 19:20:45 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SANDBOX-463) Implementation of property paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SANDBOX-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter resolved SANDBOX-463. ------------------------------------- Resolution: Fixed > 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 > Attachments: Commons-Sandbox-463#2.patch, Commons-Sandbox-463#3.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] http://markmail.org/message/pv2qpr7em4ftnulj -- This message was sent by Atlassian JIRA (v6.2#6252)