Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/util/
DServiceLoaderTest.java21 import java.util.ServiceLoader;
26 assertFalse(ServiceLoader.load(UnimplementedInterface.class).iterator().hasNext()); in test_noImplementations()
32ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.c… in test_implementations()
44 ServiceLoader.load(ServiceLoaderTestInterfaceMissingClass.class).iterator().next(); in test_missingRegisteredClass()
55 ServiceLoader.load(ServiceLoaderTestInterfaceWrongType.class).iterator().next(); in test_wrongTypeRegisteredClass()
65 ServiceLoader.load(ServiceLoaderTestInterfaceParseError.class).iterator().next(); in test_invalidRegisteredClass()
/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.java183 public final class ServiceLoader<S> class
221 private ServiceLoader(Class<S> svc, ClassLoader cl) { in ServiceLoader() method in ServiceLoader
521 public static <S> ServiceLoader<S> load(Class<S> service, in load()
524 return new ServiceLoader<>(service, loader); in load()
550 public static <S> ServiceLoader<S> load(Class<S> service) { in load()
552 return ServiceLoader.load(service, cl); in load()
581 public static <S> ServiceLoader<S> loadInstalled(Class<S> service) { in loadInstalled()
588 return ServiceLoader.load(service, prev); in loadInstalled()
/libcore/ojluni/src/main/java/java/nio/file/
DFileSystems.java332 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem()
397 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem()
DFiles.java72 import java.util.ServiceLoader;
1556 ServiceLoader<FileTypeDetector> loader = ServiceLoader
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DSelectorProvider.java34 import java.util.ServiceLoader;
109 ServiceLoader<SelectorProvider> sl = in loadProviderAsService()
110 ServiceLoader.load(SelectorProvider.class, in loadProviderAsService()
DAsynchronousChannelProvider.java31 import java.util.ServiceLoader;
112 ServiceLoader<AsynchronousChannelProvider> sl = in loadProviderAsService()
113 ServiceLoader.load(AsynchronousChannelProvider.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/support/src/test/java/tests/resources/ServiceLoader/
DServiceForEmptyTest.java18 package tests.resources.ServiceLoader;
DServiceIn2FileWithEmptyConfig.java18 package tests.resources.ServiceLoader;
DService.java18 package tests.resources.ServiceLoader;
DServiceForWrongNameTest.java18 package tests.resources.ServiceLoader;
DServiceDuplicateIn2File.java18 package tests.resources.ServiceLoader;
DServiceWithDuplicateSons.java18 package tests.resources.ServiceLoader;
DServiceForIllegalNameTest.java18 package tests.resources.ServiceLoader;
DServiceIn2File.java18 package tests.resources.ServiceLoader;
DServiceForAllCommentTest.java18 package tests.resources.ServiceLoader;
DServiceFinalClass.java18 package tests.resources.ServiceLoader;
DServiceMoreThanOne.java18 package tests.resources.ServiceLoader;
DAbstractService.java18 package tests.resources.ServiceLoader;
/libcore/ojluni/src/main/java/java/time/chrono/
DAbstractChronology.java102 import java.util.ServiceLoader;
227ServiceLoader<AbstractChronology> loader = ServiceLoader.load(AbstractChronology.class, null); in initCache()
272 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in ofLocale()
305 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in of()
345 ServiceLoader<Chronology> loader = ServiceLoader.load(Chronology.class); in getAvailableChronologies()
/libcore/ojluni/src/main/java/java/sql/
DDriverManager.java30 import java.util.ServiceLoader;
502 ServiceLoader<Driver> loadedDrivers = ServiceLoader.load(Driver.class); in loadInitialDrivers()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java45 import java.util.ServiceLoader;
361 ServiceLoader<CharsetProvider> sl = in providers()
362 ServiceLoader.load(CharsetProvider.class); in providers()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java115 ServiceLoader<FileSystemProvider> sl = ServiceLoader in loadInstalledProviders()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesProvider.java75 import java.util.ServiceLoader;

12