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 3369FDD75 for ; Sun, 10 Mar 2013 14:59:13 +0000 (UTC) Received: (qmail 65234 invoked by uid 500); 10 Mar 2013 14:59:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65153 invoked by uid 500); 10 Mar 2013 14:59:12 -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 65131 invoked by uid 99); 10 Mar 2013 14:59:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2013 14:59:12 +0000 Date: Sun, 10 Mar 2013 14:59:12 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEANUTILS-425) Support customization of introspection mechanism 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/BEANUTILS-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598279#comment-13598279 ] Benedikt Ritter commented on BEANUTILS-425: ------------------------------------------- Hi Oliver, I've had a look at your patch. The following things should IMHO be changed before applying: * Rename IntrospectionContextImpl to DefaltIntrospectionContext * Rename IntrospectionContext.getCurrentClass() to getClass() * Add generics * Add unit tests for DefaultBeanIntrospector What I like very much is, that we can externalize the bug fix for bugzilla 28358 into a separate object. BeanUtils has the problem that to much is going on in some of its methods. > Support customization of introspection mechanism > ------------------------------------------------ > > Key: BEANUTILS-425 > URL: https://issues.apache.org/jira/browse/BEANUTILS-425 > Project: Commons BeanUtils > Issue Type: New Feature > Components: Bean / Property Utils > Affects Versions: 1.8.3 > Reporter: Oliver Heger > Assignee: Oliver Heger > Priority: Minor > Attachments: beanutils-425.patch > > > So far BeanUtils can cope with properties conforming to the Java Beans specification. In some situations it makes sense to relax this requirement and allow the detection of other forms of get and set methods as well. > For instance, fluent APIs have become popular. Here you have a set method which does not return *void* and thus violates the Java Beans specification. Objects using such an API cannot be dealt with by BeanUtils currently. > For reasons of backwards compatibility the current behavior should remain the default. But it would be cool if there was an option to set a custom introspection policy. The policy would be invoked during property discovery and can decide which properties to include or not. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira