dev@glassfish.java.net

Re: [v3] exporting all Metro packages for OSGi

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 21 Aug 2008 13:21:09 -0700

Craig L Russell wrote:
> Apropos of:
>> We already had to export a lot of supposedly private packages that
>> contained classes that were looked up through META-INF/services.
>
> I'm interested in the answer to this question:
>
> If an OSGi-enabled jar file has an entry in META-INF/services/foo and
> the contents of the file foo is com.sun.fooservice.Foofactory, does
> com.sun.fooservice have to be exported?

I'm curious too. I assume the answer is "yes".

Or at least it's a "should", if not a "must".