On 10/31/07, Thomas Mueller <[EMAIL PROTECTED]> wrote: > > http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Service%20Provider > > > > Surprisingly, it seems like javax.imageio.spi.ServiceRegistry is the > > only public JDK class that implements this lookup method. > > java.security, javax.sound, javax.crypto, javax.naming, and > javax.print use this mechanism as well. ...
Ok, but what I meant is there's no general utility class that provides this mechanism. > ...In JDK 1.6, additionally > java.sql (JDBC 3.0), javax.script, and javax.tools.... Actually, as someone indicated on the [EMAIL PROTECTED] list, JDK 1.6 includes java.util.ServiceLoader, which is what I was looking for: a general service loader utility. But that's 1.6, so if we go this route, javax.imageio.spi.ServiceRegistry is probably good enough. -Bertrand
