equal
deleted
inserted
replaced
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) |