Hi Bert,

Yes, although I haven't tried it with this particular API, it should work.

Assuming that the method in that class you will be using is
lookupProviders() you'd specify as a manifest header in the consumer
bundle:
SPI-Consumer: javax.imageio.spi.ServiceRegistry#lookupProviders

On the provider side it should be enough to specify the following
manifest header:
SPI-Provider: *

Let us know how you get on!

Best regards,

David

On 12 April 2012 20:03, Bert Frees <[email protected]> wrote:
> Hello,
>
> I'm interested in using Spi Fly in my project. I would like to make an OSGi
> bundle out of a JAR. Because the JAR was built for Java 1.5, it uses
> javax.imageio.spi.ServiceRegistry instead of java.util.ServiceLoader. Will
> Spi Fly treat ServiceRegistry.lookupProviders() calls the same way it treats
> ServiceLoader.load() calls?
>
> Thanks,
> /Bert

Reply via email to