Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 37096 invoked from network); 12 Jan 2004 16:11:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Jan 2004 16:11:09 -0000 Received: (qmail 12874 invoked by uid 500); 12 Jan 2004 16:11:01 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 12835 invoked by uid 500); 12 Jan 2004 16:11:01 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 12820 invoked from network); 12 Jan 2004 16:11:00 -0000 Received: from unknown (HELO bodewig.bost.de) (62.96.16.111) by daedalus.apache.org with SMTP; 12 Jan 2004 16:11:00 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id i0CGB2r20306; Mon, 12 Jan 2004 17:11:02 +0100 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: dev@ant.apache.org Subject: Re: Selecting XML Parsers X-Draft-From: ("nnfolder:mail.jakarta-ant" 55992) References: <747F247264ECE34CA60E323FEF0CCC0C0F519F@london.cellectivity.com> From: Stefan Bodewig Date: Mon, 12 Jan 2004 17:11:02 +0100 In-Reply-To: <747F247264ECE34CA60E323FEF0CCC0C0F519F@london.cellectivity.com> (Jose Alberto Fernandez's message of "Mon, 12 Jan 2004 12:28:16 -0000") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Portable Code, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 12 Jan 2004, Jose Alberto Fernandez wrote: > Question 1: How important is caching here? I presume > it is important. > > Assuming it is important to cache, what I could do is use a static > WeakHashMap (JDK 1.2) to keep the references based on the effective > classloader to use. Sounds OK (I'm not sure about the value of caching, though). > Question 2: How good are we now at reusing classloaders? We more or less never do 8-) > I see we ask the project to construct a classloader based > on a claspath, does the same classpath (or classpath-ref) > will give you the same classloader instance? That would really > be a good thing. Not without further work, no. > So, does any body object to this type of approach in principle? Looks fine. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org