jdk/src/share/classes/java/util/ServiceLoader.java
changeset 14228 131a42bc2c20
parent 14218 c6f2434dd88d
parent 14016 56be5085fc31
child 14229 40fbffe104bd
equal deleted inserted replaced
14227:f051c5b38a8a 14228:131a42bc2c20
   211         providers.clear();
   211         providers.clear();
   212         lookupIterator = new LazyIterator(service, loader);
   212         lookupIterator = new LazyIterator(service, loader);
   213     }
   213     }
   214 
   214 
   215     private ServiceLoader(Class<S> svc, ClassLoader cl) {
   215     private ServiceLoader(Class<S> svc, ClassLoader cl) {
   216         service = svc;
   216         service = Objects.requireNonNull(svc, "Service interface cannot be null");
   217         loader = cl;
   217         loader = cl;
   218         reload();
   218         reload();
   219     }
   219     }
   220 
   220 
   221     private static void fail(Class<?> service, String msg, Throwable cause)
   221     private static void fail(Class<?> service, String msg, Throwable cause)