public final class SimpleServiceLoader
extends java.lang.Object
ServiceLoader that avoids certain long-standing bugs. This
simpler implementation does not bother with lazy loading but returns all the service
implementations in one list. It makes sure that URLConnection.setUseCaches(boolean) is called to
turn off jar caching, since that tends to lead to problems in versions before JDK 9.| Modifier and Type | Method and Description |
|---|---|
static <T> <any> |
load(java.lang.Class<? extends T> service,
java.lang.ClassLoader loader) |
Copyright © 2020 Google LLC. All Rights Reserved.