tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52549] scanning HandlesTypes causes aggressive classloading
Date Sun, 29 Jan 2012 17:45:17 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52549

--- Comment #4 from Mark Thomas <markt@apache.org> 2012-01-29 17:45:17 UTC ---
Just for the record, you appear to have missed the point of this code.

The list of ServletContainerInitializer is obtained from
META-INF/services/javax.servlet.ServletContainerInitializer within each JAR,
not from scanning the classes and looking for classes that implement it.

The scanning is only done if there is at least one ServletContainerInitializer
that defines HandlesTypes and the scanning is looking for classes that extend
or implement the classes/interfaces defined by HandlesTypes. Loading the class
was a quick and dirty solution (that has survived longer than I thought it
might) to determining if the class meets the extends or implements test.

See the duplicate for my comments on your suggestions. Short version this is
doable with some refactoring and next on my todo list.

Feel free to change the duplicate to a bug if you wish. I'm not that bothered
since it is getting fixed anyway.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message