Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 62735 invoked from network); 25 Feb 2003 23:21:33 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 25 Feb 2003 23:21:33 -0000 Received: (qmail 25375 invoked by uid 97); 25 Feb 2003 23:23:15 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 25365 invoked from network); 25 Feb 2003 23:23:14 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 25 Feb 2003 23:23:14 -0000 Received: (qmail 62511 invoked by uid 500); 25 Feb 2003 23:21:31 -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 62493 invoked from network); 25 Feb 2003 23:21:31 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 25 Feb 2003 23:21:31 -0000 Received: (qmail 60991 invoked by uid 1059); 25 Feb 2003 23:21:28 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 25 Feb 2003 23:21:28 -0000 Date: Tue, 25 Feb 2003 15:21:28 -0800 (PST) From: "Craig R. McClanahan" To: Jakarta Commons Developers List Subject: Re: [beanutils] beans for static utility classes In-Reply-To: Message-ID: <20030225151739.F41272@icarus.apache.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 25 Feb 2003, robert burrell donkin wrote: > Date: Tue, 25 Feb 2003 22:45:16 +0000 > From: robert burrell donkin > Reply-To: Jakarta Commons Developers List > To: Jakarta Commons Developers List > Subject: [beanutils] beans for static utility classes > > beanutils has a fair number of utility classes which are composed of > static methods. i'd like to create proper beans containing the > implementation code and have the static methods call an instance. > > this would allow users to create different instances with - for example - > different registered convertors. see > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14848 > > and > > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=104613177905644&w=2 > > it would also allow normal inheritance to be used to improve the structure > of the code allowing - for example - the easier maintenance of the locale > beanutils code: > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16038 > > it would also allow improved and more flexible caching to be developer to > improve performance. see: > > http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=103929482023502&w=2 > > comments? > > anyone objections to me implementing these changes? > +1. We should, however, create a factory method (perhaps based on commons-discovery technology) to create an appropriate implementation of the proper beans for you. That way, we could support pluggable replacements for the standard implementation classes quite easily. Finally, the factory should be configurable to (or default to) creating an instance per class loader. That way, for example, the cache of introspected beans that PropertyUtils maintains for one webapp won't conflict with the cache for a different webapp, even if commons-beanutils is loaded from a parent class loader. > - robert > Craig --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org