Am Mittwoch, den 31.10.2007, 15:37 +0100 schrieb Marcel Reutegger:
> Bertrand Delacretaz wrote:
> > 1) Our own simple "jar service provider" mechanism
> > microsling looks for jar files providing a file like [1] , using our
> > own simple ServiceLoader class (like Felix suggests, that's about 10
> > lines of code).
> 
> just curious, why would you write those 10 lines if the JDK already provides 
> what you are looking for?

Because using sun.misc is not an option (portability) and using
javax.imageio is misusing an API, which is not the best of all options.
The problem in fact is, that the sun.misc.Service class (or
functionality if you wish) has not been defined as a API utility for far
too long.

Regards
Felix

Reply via email to