Reading through the Java service provider interface
(http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html), I did some
digging to see why Java hasn't provided the corresponding class, and
it turns out they have
(http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html)!
So the question is: what does pivot.util.Service provide that
java.util.ServiceLoader doesn't?  And can the META-INF/services
portion of pivot.util.Service be made to use java.util.ServiceLoader?
The JDK version supports the full spec, including correct handling of
comments, whereas ours doesn't.  This all came about because we should
add a license header to our service provider configuration files, but
right now, that chokes our parser :-(

-T

Reply via email to