On 27/12/2017 5:43 AM, Jochen Theodorou wrote:
On 26.12.2017 19:30, Jochen Theodorou wrote:
hi all,
Do all files in META-INF/services now have to be well formed according
to the SPI strucutres in Java, or is it still valid to have other
files in there as well? Before the module system it was no problem to
have in there service decriptors, that are services, but do not use
the ServiceProvider structure. Nothing was disturbed as long as nobody
tried to load it that way. Now this seems to be different and I am
wondering where this got specified.
Because the spec does not try to define file layouts so much I have
the feeling that this is not really specified by the java module
system. Was it then a decision by some maven plugin writers or maybe
even the javac guys?
I found
https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Service_Provider
Is there no Java 9 version? Also the spec is not specific enough for
this as it sounds more like implicit assumption than specification
https://docs.oracle.com/javase/9/docs/specs/jar/jar.html
but the Service provider section is gone. Also the document seems
mis-formatted.
David
bye Jochen