Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 63301 invoked from network); 8 Nov 2006 04:15:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2006 04:15:16 -0000 Received: (qmail 52624 invoked by uid 500); 8 Nov 2006 04:15:25 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 52333 invoked by uid 500); 8 Nov 2006 04:15:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 52322 invoked by uid 99); 8 Nov 2006 04:15:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 20:15:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 20:15:12 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7FDAE7142F8 for ; Tue, 7 Nov 2006 20:14:52 -0800 (PST) Message-ID: <17259764.1162959292520.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 20:14:52 -0800 (PST) From: "Niall Pemberton (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (BEANUTILS-259) Plugable Expression Resolver In-Reply-To: <1646733.1162958931476.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/BEANUTILS-259?page=all ] Niall Pemberton updated BEANUTILS-259: -------------------------------------- Component/s: Expression Syntax (was: Bean / Property Utils) > Plugable Expression Resolver > ---------------------------- > > Key: BEANUTILS-259 > URL: http://issues.apache.org/jira/browse/BEANUTILS-259 > Project: Commons BeanUtils > Issue Type: Improvement > Components: Expression Syntax > Affects Versions: 1.7.0 > Reporter: Niall Pemberton > Assigned To: Niall Pemberton > Priority: Minor > Attachments: BasicResolver.java, BasicResolverTestCase.java, Resolver.java > > > There are a number of outstanding bugs against the BeanUtils expression syntax with people wanting BeanUtils to support different variations. There is also a duplication of the "expression evaluation" code in various methods which can't be tested in isolation and is difficult to maintain as changes have to be applied uniformly to various places. > The main places where the code is duplicated: > PropertyUtilsBean > - getNestedProperty > - setNestedProperty > - getPropertyDescriptor > BeanUtilsBean > - copyProperty > - setProperty > LocaleBeanUtils has also implemented an alternative mechanism - using a Descriptor object to resolve references. BeanUtils and PropertyUtils also work in slightly different ways. There are also other methods (e.g. PropertyUtilsBean's getIndexedProperty() method) which also have related code. > I propose to add a new "expression resolver" interface, which would be a singleton and everywhere would delegate to to resolve property expressions. This will allow easy testing as it can be tested in isolation and provide a uniform mechanism accross BeanUtils. It will also allow alternative syntax to be implemented if the resolver implementation can be configured. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org