Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 96323 invoked from network); 26 Dec 2007 22:25:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Dec 2007 22:25:08 -0000 Received: (qmail 26790 invoked by uid 500); 26 Dec 2007 22:24:55 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 26780 invoked by uid 500); 26 Dec 2007 22:24:55 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 26762 invoked by uid 99); 26 Dec 2007 22:24:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2007 14:24:55 -0800 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; Wed, 26 Dec 2007 22:24:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 80938714233 for ; Wed, 26 Dec 2007 14:24:43 -0800 (PST) Message-ID: <7585494.1198707883522.JavaMail.jira@brutus> Date: Wed, 26 Dec 2007 14:24:43 -0800 (PST) From: "Stephen Solka (JIRA)" To: jspwiki-dev@incubator.apache.org Subject: [jira] Commented: (JSPWIKI-115) Change VariableManager.getValue to use reflection instead of a series of if statements In-Reply-To: <8136810.1198697863029.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/JSPWIKI-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554476 ] Stephen Solka commented on JSPWIKI-115: --------------------------------------- Since currently we lowercase varnames prior to processing do you think getvarname() would look odd? example getusername(). Normally with beans its getUsername(). Should I capitalize the first letter before obtaining the methods that way they stick to the bean standard or should I just change var_ to get? > Change VariableManager.getValue to use reflection instead of a series of if statements > -------------------------------------------------------------------------------------- > > Key: JSPWIKI-115 > URL: https://issues.apache.org/jira/browse/JSPWIKI-115 > Project: JSPWiki > Issue Type: Improvement > Components: Core & storage > Reporter: Stephen Solka > Priority: Minor > Attachments: var_reflection.patch > > > A fixme tag was on getValue about cleaning up how system variables were handled. Currently a series of if else blocks goes through and designates a response for specific variables names. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.