levigo / jbig2-imageio

A Java ImageIO plugin for the JBIG2 bi-level image format
Apache License 2.0
31 stars 19 forks source link

Use general service loading instead of Image I/O-specific #18

Closed ghost closed 8 years ago

ghost commented 8 years ago

In Java 9, javax.imageio.spi.ServiceRegistry checks if the requested service is an implementation of the Image I/O service provider interface. This module used the Image I/O service registry for loading external utility services like logging and caching. This is not an intended use and is now prohibited by the Java 9 runtime. javax.imageio.spi.ServiceRegistry uses 'java.util.ServiceLoader' internally.

The lookups done by javax.imageio.spi.ServiceRegistry are replaced by that of 'java.util.ServiceLoader'. This fixes issue #10.