java.util.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 is called to
turn off jar caching, since that tends to lead to problems in versions before JDK 9.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> ImmutableList | |
| public static <T> ImmutableList | |
| private static Optional | |
| private static <T> ImmutableSet | providerClassesFromUrl(URL resourceUrl, Class<? extends T> service, ClassLoader loader, Optional<Pattern> allowedMissingClasses)
|
| SimpleServiceLoader | back to summary |
|---|---|
| private SimpleServiceLoader() | |
| load | back to summary |
|---|---|
| public static <T> ImmutableList | |
| load | back to summary |
|---|---|
| public static <T> ImmutableList | |
| parseClassName | back to summary |
|---|---|
| private static Optional | |
| providerClassesFromUrl | back to summary |
|---|---|
| private static <T> ImmutableSet | |