Webrev for JAX-WS/JAXB/SAAJ services
    Jesse Glick 
    jesse.glick at oracle.com
       
    Thu May 17 10:07:35 PDT 2012
    
    
  
On 05/17/2012 12:12 PM, Paul Sandoz wrote:
> e.g. a default provider always occurs after any non-default.
Would seem simpler to not register this provider in module-info.java at all, and just use the simple idiom:
for (Service s : ServiceLoader.load(Service.class)) {
   if (s.handles(arg)) {
     return s.dealWith(arg);
   }
}
// could of course also inline this code:
Service s = new DefaultService();
return s.dealWith(arg);
    
    
More information about the jigsaw-dev
mailing list