Lines Matching defs:loader
88 ServiceLoader<ScriptEngineFactory> loader
90 Set<String> names = collectAll(loader)
105 ServiceLoader<ScriptEngineFactory> loader
108 for (ScriptEngineFactory factory : collectAll(loader)) {
206 * Basic test ServiceLoader.load specifying the platform class loader.
214 ServiceLoader<ScriptEngineFactory> loader
216 Set<String> names = collectAll(loader)
253 ClassLoader loader = layer.findLoader("pearscript");
256 // load using the class loader as context
257 factory = ServiceLoader.load(ScriptEngineFactory.class, loader)
261 assertTrue(factory.getClass().getClassLoader() == loader);
268 assertTrue(factory.getClass().getClassLoader() == loader);
272 * Basic test of ServiceLoader.load, using the class loader for
279 ClassLoader loader = layer.findLoader("bananascript");
281 = collectAll(ServiceLoader.load(ScriptEngineFactory.class, loader));
288 assertTrue(factory.getClass().getClassLoader() == loader);
470 private <E> List<E> collectAll(ServiceLoader<E> loader) {
472 Iterator<E> iterator = loader.iterator();