Webrev for JAX-WS/JAXB/SAAJ services
Paul Sandoz
paul.sandoz at oracle.com
Thu May 17 09:12:23 PDT 2012
On May 17, 2012, at 5:52 PM, Alan Bateman wrote:
> On 17/05/2012 16:21, Paul Sandoz wrote:
>> http://cr.openjdk.java.net/~psandoz/jigsaw/jaxws-services/webrev/
>>
>> This is to make it easier for the team modularizing JAX-WS to experiment with using ServiceLoader.
> Good, we need to get the JAX-WS changed to use ServiceLoader.
>
> I can push this for you.
>
Thanks.
>>
>> It's still to be determined whether the default service implementations will be declared with:
>>
>> provides service X with Y;
>>
>> in the module declaration e.g. since there is no point loading the default service provider if there is a non-default service provider declared in another module.
>>
>>
>> As a side note it does make we wonder whether there should be a special case for a service, essentially a factory, of which there should be at most one (with an optional fallback to a default when are none).
>>
> Alternatively this could consider as setting a preference, or preferred order. This may be something we will have to look into for aliases too.
>
Yes, e.g. a default provider always occurs after any non-default.
The "at most one" service provider may be useful if say there is an API module that requires factory-based services from only one implementation module. It may be considered a conflict if two or more vendor implementations are installed.
Paul.
More information about the jigsaw-dev
mailing list