Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 58625 invoked from network); 2 Jun 2007 04:27:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2007 04:27:38 -0000 Received: (qmail 87975 invoked by uid 500); 2 Jun 2007 04:27:40 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 87895 invoked by uid 500); 2 Jun 2007 04:27:40 -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 87884 invoked by uid 99); 2 Jun 2007 04:27:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 21:27:40 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 01 Jun 2007 21:27:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B475D71418E for ; Fri, 1 Jun 2007 21:27:15 -0700 (PDT) Message-ID: <669453.1180758435735.JavaMail.jira@brutus> Date: Fri, 1 Jun 2007 21:27:15 -0700 (PDT) From: "peter royal (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Resolved: (JEXL-28) Enhance the resolution of properties and methods In-Reply-To: <26293871.1163037397168.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 [ https://issues.apache.org/jira/browse/JEXL-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] peter royal resolved JEXL-28. ----------------------------- Resolution: Won't Fix Fix Version/s: 1.1.1 You can use your own Uberspect in JEXL-13 to achieve this. > Enhance the resolution of properties and methods > ------------------------------------------------ > > Key: JEXL-28 > URL: https://issues.apache.org/jira/browse/JEXL-28 > Project: Commons JEXL > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Weikuo Liaw > Priority: Critical > Fix For: 1.1.1 > > > JexlContext need provide additional methods, such as > 1) Object getProperty(Object object, String propName); > 2) void setProperty(Object object, String propName, Object propValue); > 3) Object invokeMethod(Object object, String methodName, Object[] params); > where object can be null for the non-object properties/methods. > ASTIdentifier, ASTArrayAccess, ASTAssignment, and ASTMethod can use them for unresolvable properties/methods. > This is similar to what are changed by myFacese over commons EL to support friendly VariableResolver and PropertyResolver for applications. > I use "ObjectinvokeMethod()" instead of "Method getMethod(object, methodNae)", because a method may not be implemented as a java method. Such as in commons validator, validators are registered in the configuration file of validation forms. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org