Do you have to parse it more than one time?

On Tue, Apr 14, 2009 at 10:29 AM, Gurkan Erdogdu
<[email protected]> wrote:
> Hi;
>
> It will used by the XML parser to parse the beans.xml files.
>
> Gurkan
>
> 2009/4/14 Mark Struberg <[email protected]>
>
>>
>> Hi!
>>
>> Since WEBBEANS_XML_LOCATIONS in the MetaDataDiscoveryService is a
>>
>> > WEBBEANS_XML_LOCATIONS.put(addPath.getFile(), addPath.openStream());
>>
>> and URL#openStream() is basically equivalent to
>> openConnection().getInputStream()
>> we have all the beans.xml opened all the time. Is this really necessary?
>> Can we somehow change the WEBBEANS_XML_LOCATIONS to only keep the URI and
>> not even the URL (may cause opening a connection in some situations too)?
>>
>> txs and LieGrue,
>> strub
>>
>>
>> PS: I will rename the variable to camelCase since it is no constant with my
>> next checkin, so please wait for it - txs :)
>>
>>
>>
>>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Reply via email to