Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 42508 invoked from network); 1 Sep 2004 20:01:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Sep 2004 20:01:14 -0000 Received: (qmail 71037 invoked by uid 500); 1 Sep 2004 20:01:11 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 70833 invoked by uid 500); 1 Sep 2004 20:01:09 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 70815 invoked by uid 99); 1 Sep 2004 20:01:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [206.190.39.133] (HELO web52508.mail.yahoo.com) (206.190.39.133) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Sep 2004 13:01:09 -0700 Message-ID: <20040901200053.90968.qmail@web52508.mail.yahoo.com> Received: from [63.240.15.100] by web52508.mail.yahoo.com via HTTP; Wed, 01 Sep 2004 13:00:53 PDT X-RocketYMMF: millrtim Date: Wed, 1 Sep 2004 13:00:53 -0700 (PDT) From: Kyle Miller Reply-To: k@kylemiller.com Subject: [DBUtils] BeanProcessor enhancement request To: commons-dev@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have a JavaBean that needs to be populated from 3 different select statements, unfortunately DBUtils BeanProcessor doesn't support the reuse of beans, it instantiates a new instance each time. I would like to see more of the methods in BeanProcessor be protected instead of private. I like the JavaBean processing in BeanProcessor, and I don't want to reimplement it. However I would like to override the newInstance method to return an existing object instead of new instance. I can also think of instances where someone may want to override the isCompatableType method. I have implemented a BeanReuseProcessor that works with a single bean or a list of beans, and it is fully junit tested. It required changing the visibilty of BeanProcessor.newInstance(...) to protected, so I would like to get the changes added to CVS so I don't have to keep hacking the source every for every release. I think this is a useful enhancement, and I would like to contribute it to the project. Please let me know what you think. -- Kyle --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org