AFAICS, the module tracking only works when the exporting module gets installed *after* the importing module has its policy setup.The WildcardClassLoaderPolicy should probably also scan allready existing modules when it is setup. More generally, perhaps a ModuleTracker that works simmilar to BundleTracker is needed.
Yes, forgot about that, I'll add that, properly.
Even then, addModule
public void addModule(Module current)
{
Domain md = getDomain(current);
if (md != null && current.canResolve(requirement))
{
...
}
will not add the exporting module because Module.canResolve(req) would not return 'true' for DynamicImport-Package: *
Why is that?