[jboss-user] [JBoss Microcontainer Development] - Wildcard support in Dynamic-imports

Ales Justin do-not-reply at jboss.com
Sat May 15 04:36:51 EDT 2010

Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"Wildcard support in Dynamic-imports"

To view the discussion, visit: http://community.jboss.org/message/543227#543227

> 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  http://www.osgi.org/javadoc/r4v42/org/osgi/util/tracker/BundleTracker.html 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?


Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100515/c2e00b17/attachment-0001.html 

More information about the jboss-user mailing list