tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Re-factoring TLD parsing
Date Fri, 17 Aug 2012 08:32:37 GMT
On 17 August 2012 05:00, Christopher Schultz
<chris@christopherschultz.net> wrote:
> Sebb,
>
> On 8/16/12 7:11 PM, sebb wrote:
>> On 16 August 2012 23:44, Christopher Schultz
>> <chris@christopherschultz.net> wrote:
>>>
>>> I had a conversation in Vancouver with David Blevins about the scourge
>>> of JAR-scanning in general (in that case, we were discussing
>>> annotation-processing) and I suggested that a generic JAR scanner could
>>> be built that would simply scan JARs and emit events like "found
>>> annotation" or "found JAR" or "found file" or whatever.
>>
>> What about timing?
>> If the components start up independently, there could be issues with
>> knowing when all interested parties have declared themselves and when
>> it is safe to start the scan. Equally, one component may require the
>> information before another registers.
>
> Obviously, timing can be an issue. If the scan is already done and the
> events haven't been stored somewhere, the scan needs to be re-done. At
> that point, it's no worse than the situation as it stands, today. The
> components that can benefit from this idea can, while others will not
> suffer any worse than they already do.

Provided that the scan only does what is needed by that component.
If the scanner performs multiple types of scan each time, some of that
work will be wasted.

So the components would need to be able to register for specific scan types.
The scanner would also need to keep track of which scan types are
outstanding requests.

Obviously if the scanner can cache the info, this would not apply.

> -chris
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message