Home
last modified time | relevance | path

Searched refs:ServiceLoader (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DServiceLoaderTest.java22 import java.util.ServiceLoader;
27 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext()); in test_noImplementations()
33ServiceLoader<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/
DBasic.java26 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()
DFooService.java24 package test.java.util.ServiceLoader;
DFooProvider1.java24 package test.java.util.ServiceLoader;
DFooProvider2.java24 package test.java.util.ServiceLoader;
DFooProvider3.java24 package test.java.util.ServiceLoader;
/libcore/support/src/test/java/tests/resources/ServiceLoader/
Dhyts_services.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/.svn/ META ...
Dhyts_services2.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/.svn/ META ...
DServiceDuplicateIn2File.java18 package tests.resources.ServiceLoader;
DServiceIn2FileWithEmptyConfig.java18 package tests.resources.ServiceLoader;
DServiceForIllegalNameTest.java18 package tests.resources.ServiceLoader;
DServiceForWrongNameTest.java18 package tests.resources.ServiceLoader;
DServiceForEmptyTest.java18 package tests.resources.ServiceLoader;
DServiceWithDuplicateSons.java18 package tests.resources.ServiceLoader;
DServiceIn2File.java18 package tests.resources.ServiceLoader;
DService.java18 package tests.resources.ServiceLoader;
/libcore/ojluni/annotations/flagged_api/java/util/
DServiceLoader.annotated.java31 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/
Dtest.java.util.ServiceLoader.FooService1 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/
DTestServiceLoader.java66 import java.util.ServiceLoader;
82 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class, in test_copticServiceLoader()
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java286 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/
DFileSystems.java332 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem()
397 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java31 import java.util.ServiceLoader;
113 ServiceLoader<AsynchronousChannelProvider> sl = in loadProviderAsService()
114 ServiceLoader.load(AsynchronousChannelProvider.class, in loadProviderAsService()
DSelectorProvider.java34 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/
DPreferences.java36 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/
DAbstractChronology.java102 import java.util.ServiceLoader;
197ServiceLoader<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()

12