Module system and services directory in META-INF

Remi Forax forax at univ-mlv.fr
Wed Dec 27 12:10:24 UTC 2017


I believe that the doc has been moved to the doc of the ServiceLoader
  https://docs.oracle.com/javase/9/docs/api/java/util/ServiceLoader.html

Rémi

----- Mail original -----
> De: "David Holmes" <david.holmes at oracle.com>
> À: "Jochen Theodorou" <blackdrag at gmx.org>, "jigsaw-dev" <jigsaw-dev at openjdk.java.net>
> Envoyé: Mercredi 27 Décembre 2017 07:27:21
> Objet: Re: Module system and services directory in META-INF

> 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


More information about the jigsaw-dev mailing list