Module system and services directory in META-INF
Jochen Theodorou
blackdrag at gmx.org
Tue Dec 26 19:43:03 UTC 2017
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
bye Jochen
More information about the jigsaw-dev
mailing list