ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Selecting XML Parsers
Date Mon, 12 Jan 2004 16:11:02 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message