Lines Matching defs:ServiceLoader

65  * interface or class. A {@code ServiceLoader} is an object that locates and
75 * one of the static {@code load} methods of ServiceLoader. If the application
83 * service by means of the {@link #iterator() iterator} method. {@code ServiceLoader}
103 * ServiceLoader<CodecFactory> loader = ServiceLoader.load(CodecFactory.class);
129 * ServiceLoader<CodecFactory> loader = ServiceLoader.load(CodecFactory.class);
349 * href="ServiceLoader.html#format">format</a> specified above; </li>
390 public final class ServiceLoader<S>
407 // The access control context taken when the ServiceLoader is created
428 * Represents a service provider located by {@code ServiceLoader}.
430 * <p> When using a loader's {@link ServiceLoader#stream() stream()} method
476 private ServiceLoader(Class<?> caller, ModuleLayer layer, Class<S> svc) {
499 private ServiceLoader(Class<?> caller, Class<S> svc, ClassLoader cl) {
509 // if we get here then it means that ServiceLoader is being used
541 private ServiceLoader(Module callerModule, Class<S> svc, ClassLoader cl) {
1360 final int expectedReloadCount = ServiceLoader.this.reloadCount;
1370 if (ServiceLoader.this.reloadCount != expectedReloadCount)
1425 * Stream<CodecFactory> providers = ServiceLoader.load(CodecFactory.class)
1429 * Stream<CodecFactory> providers = ServiceLoader.load(CodecFactory.class)
1457 final int expectedReloadCount = ServiceLoader.this.reloadCount;
1473 if (ServiceLoader.this.reloadCount != expectedReloadCount)
1525 static <S> ServiceLoader<S> load(Class<S> service,
1529 return new ServiceLoader<>(callerModule, service, loader);
1555 * defineModulesWithManyLoaders}). If this {@code ServiceLoader.load} method
1636 public static <S> ServiceLoader<S> load(Class<S> service,
1639 return new ServiceLoader<>(Reflection.getCallerClass(), service, loader);
1649 * ServiceLoader.load(service)
1655 * ServiceLoader.load(service, Thread.currentThread().getContextClassLoader())
1682 public static <S> ServiceLoader<S> load(Class<S> service) {
1684 return new ServiceLoader<>(Reflection.getCallerClass(), service, cl);
1694 * ServiceLoader.load(service, ClassLoader.getPlatformClassLoader())
1718 public static <S> ServiceLoader<S> loadInstalled(Class<S> service) {
1720 return new ServiceLoader<>(Reflection.getCallerClass(), service, cl);
1771 public static <S> ServiceLoader<S> load(ModuleLayer layer, Class<S> service) {
1772 return new ServiceLoader<>(Reflection.getCallerClass(), layer, service);
1785 * CodecFactory factory = ServiceLoader.load(CodecFactory.class)
1838 return "java.util.ServiceLoader[" + service.getName() + "]";