/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 22 import java.util.ServiceLoader; 27 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext()); in test_noImplementations() 33 …ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.c… in test_implementations() 43 ServiceLoader<ServiceLoaderTestInterface> loader in test_findFirst_nonEmptyLoader() 44 = ServiceLoader.load(ServiceLoaderTestInterface.class); in test_findFirst_nonEmptyLoader() 53 var serviceLoader = ServiceLoader.load(UnimplementedInterface.class); in test_findFirst_emptyLoader() 59 var serviceLoader = ServiceLoader.load(UnimplementedInterface.class); in test_stream_emptyLoader() 67 var serviceLoader = ServiceLoader.load(ServiceLoaderTestInterface.class); in test_streamTypes_nonEmptyLoader() 69 var providerTypes = serviceLoader.stream().map(ServiceLoader.Provider::type).toList(); in test_streamTypes_nonEmptyLoader() 75 var serviceLoader = ServiceLoader.load(ServiceLoaderTestInterface.class); in test_stream_providerGet_nonEmptyLoader() [all …]
|
/libcore/ojluni/src/test/java/util/ServiceLoader/basic/ |
D | Basic.java | 26 package test.java.util.ServiceLoader; 54 abstract ServiceLoader<FooService> load(); in load() 58 ServiceLoader<FooService> load() { 59 return ServiceLoader.load(FooService.class); 64 ServiceLoader<FooService> load() { 65 return ServiceLoader.load(FooService.class, ClassLoader.getSystemClassLoader()); 70 ServiceLoader<FooService> load() { 71 return ServiceLoader.load(FooService.class, null); 84 ServiceLoader<FooService> sl = tl.load(); in test()
|
D | FooService.java | 24 package test.java.util.ServiceLoader;
|
D | FooProvider1.java | 24 package test.java.util.ServiceLoader;
|
D | FooProvider2.java | 24 package test.java.util.ServiceLoader;
|
D | FooProvider3.java | 24 package test.java.util.ServiceLoader;
|
/libcore/support/src/test/java/tests/resources/ServiceLoader/ |
D | hyts_services.jar | META-INF/
META-INF/MANIFEST.MF
META-INF/.svn/
META ... |
D | hyts_services2.jar | META-INF/
META-INF/MANIFEST.MF
META-INF/.svn/
META ... |
D | ServiceDuplicateIn2File.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceIn2FileWithEmptyConfig.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceForIllegalNameTest.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceForWrongNameTest.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceForEmptyTest.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceWithDuplicateSons.java | 18 package tests.resources.ServiceLoader;
|
D | ServiceIn2File.java | 18 package tests.resources.ServiceLoader;
|
D | Service.java | 18 package tests.resources.ServiceLoader;
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | ServiceLoader.annotated.java | 31 public final class ServiceLoader<S> implements java.lang.Iterable<S> { class 33 ServiceLoader() { throw new RuntimeException("Stub!"); } in ServiceLoader() method in ServiceLoader 38 public java.util.stream.Stream<java.util.ServiceLoader.Provider<S>> stream() { throw new RuntimeExc… in stream() 40 public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S> service, java.lang.ClassLoader… in load() 42 public static <S> java.util.ServiceLoader<S> load(java.lang.Class<S> service) { throw new RuntimeEx… in load() 44 public static <S> java.util.ServiceLoader<S> loadInstalled(java.lang.Class<S> service) { throw new … in loadInstalled()
|
/libcore/ojluni/src/test/resources/META-INF/services/ |
D | test.java.util.ServiceLoader.FooService | 1 test.java.util.ServiceLoader.FooProvider1 2 test.java.util.ServiceLoader.FooProvider2 3 test.java.util.ServiceLoader.FooProvider3
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestServiceLoader.java | 66 import java.util.ServiceLoader; 82 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class, in test_copticServiceLoader()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ServiceLoader.java | 286 public final class ServiceLoader<S> class 405 private ServiceLoader(Class<?> caller, Class<S> svc, ClassLoader cl) { in ServiceLoader() method in ServiceLoader 1348 final int expectedReloadCount = ServiceLoader.this.reloadCount; in iterator() 1358 if (ServiceLoader.this.reloadCount != expectedReloadCount) in iterator() 1444 final int expectedReloadCount = ServiceLoader.this.reloadCount; 1460 if (ServiceLoader.this.reloadCount != expectedReloadCount) in tryAdvance() 1568 public static <S> ServiceLoader<S> load(Class<S> service, in load() 1571 return new ServiceLoader<>(Reflection.getCallerClass(), service, loader); in load() 1612 public static <S> ServiceLoader<S> load(Class<S> service) { in load() 1614 return new ServiceLoader<>(Reflection.getCallerClass(), service, cl); in load() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileSystems.java | 332 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem() 397 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AsynchronousChannelProvider.java | 31 import java.util.ServiceLoader; 113 ServiceLoader<AsynchronousChannelProvider> sl = in loadProviderAsService() 114 ServiceLoader.load(AsynchronousChannelProvider.class, in loadProviderAsService()
|
D | SelectorProvider.java | 34 import java.util.ServiceLoader; 116 ServiceLoader<SelectorProvider> sl = in loadProviderAsService() 117 ServiceLoader.load(SelectorProvider.class, in loadProviderAsService()
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | Preferences.java | 36 import java.util.ServiceLoader; 319 PreferencesFactory result = ServiceLoader.loadFromSystemProperty(PreferencesFactory.class); in factory() 324 for (PreferencesFactory impl : ServiceLoader.load(PreferencesFactory.class)) { in factory()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | AbstractChronology.java | 102 import java.util.ServiceLoader; 197 … ServiceLoader<AbstractChronology> loader = ServiceLoader.load(AbstractChronology.class, null); in initCache() 242 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in ofLocale() 275 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in of() 315 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in getAvailableChronologies()
|