Hi,
I am confused by the manifest headers generated by maven-bundle-plugin.
I have a class called Bar.class which is defined in a OSGi bundle called
osgi-test2-bar like this:
package sahoo.osgitest2.bar;
import org.osgi.framework.*;
import sahoo.osgitest2.foo.api.Foo;
import sahoo.osgitest2.foo.impl.FooImpl;
public class Bar implements BundleActivator {
public void start(BundleContext context) throws Exception {
System.out.println(Foo.class);
System.out.println(FooImpl.class);
}
public void stop(BundleContext context) throws Exception { }
}
As you can see, this class uses sahoo.osgitest2.foo.api.Foo and
sahoo.osgitest2.foo.impl.FooImpl. Both these classes are part of another
bundle called osgi-test2-foo. When I package osgi-test2-bar, it
generates the following manifest headers:
Export-Package:
sahoo.osgitest2.bar;uses:="sahoo.osgitest2.foo.impl,sahoo.osgitest2.foo.api,org.osgi.framework"
Why does the uses attribute contain foo packages? They are not used in
the interface of Bar, are they?
Thanks,
Sahoo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]