[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Remaing classLoader changes
adrian@jboss.org
do-not-reply at jboss.com
Thu Jan 24 20:04:46 EST 2008
"scott.stark at jboss.org" wrote : Another feature I need is the ability to specify the packages that should be excluded in the package visitation scan. For a war, everything under WEB-INF/classes, WEB-INF/lib/*.jar should be visible, unless they are java.* or javax.servlet.* classes. I'm working on this for the war class loader changes.
|
| http://jira.jboss.org/jira/browse/JBMICROCONT-228
|
I don't think your excluded packages is doing what you think it is doing. ;-)
Or if it is, it should be called setExcludedExportPackages() which I guess
would only be useful with exportAll?
What you've done is remove the packages from the exports.
They will still be used on local classloading requests.
A real excluded packages would need to filter out those requests
that ask for resources/streams in that package.
Also, wouldn't it more efficient to filter out the exlcuded packages
when it does the getPackages() callback
| public Set<String> getPackages()
| {
| if (excluedPackages != null)
| packages.removeAll(excludedPackages);
| return packages;
| }
|
rather than looping through every exluded package on every visited package?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123288#4123288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123288
More information about the jboss-dev-forums
mailing list