[jboss-dev-forums] [JBoss OSGi Development] - Re: 3.6.3 Optional Packages

adrian@jboss.org do-not-reply at jboss.com
Mon Sep 14 12:10:31 EDT 2009


The issue here is that the dynamic import metadata isn't getting mapped to
a PackageRequirement at the moment (see OSGiBundleClassLoadingDeployer for the TODO).

The reason I haven't done it, is because the OSGi metadata lets you specify
the packages using wildcards, while the current jboss implementation
only lets you do explicit package names.

See 
org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory
and related classes.

I could make your test work (since it doesn't use wildcards) but that wouldn't be the
full solution.

There's a similar issue for the "uses" constraint.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255139#4255139

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255139



More information about the jboss-dev-forums mailing list