Lines Matching defs:loader

279         private final ScriptLoader loader;
288 private NamedContextCodeInstaller(final Context context, final CodeSource codeSource, final ScriptLoader loader) {
290 this.loader = loader;
298 return loader.installClass(Compiler.binaryName(className), bytecode, codeSource);
313 // as it produces classes with resolvable names, all defined in a single class loader.
340 // This code loader can be indefinitely reused for on-demand recompilations for the same code source.
346 // This code loader can not be used to install multiple classes that reference each other, as they
477 /** class loader to resolve classes from script. */
485 /** Class loader to load classes compiled from scripts. */
494 /** Unique id for script. Used only when --loader-per-compile=false */
500 /** Process-wide singleton structure loader */
554 * @param appLoader application class loader
565 * @param appLoader application class loader
579 * @param appLoader application class loader
592 * @param appLoader application class loader
613 // if user passed --module-path, we create a module class loader with
618 // make sure that caller can create a class loader.
633 // the app loader or module app loader as the parent.
636 // make sure that caller can create a class loader.
1178 // Try finding using the "app" loader.
1183 // return the Class only if it was loaded by boot loader
1328 * loader.
1331 * @param loader the class loader of the module
1334 static Module createModuleTrusted(final ModuleDescriptor descriptor, final ClassLoader loader) {
1335 return createModuleTrusted(ModuleLayer.boot(), descriptor, loader);
1340 * loader.
1344 * @param loader the class loader of the module
1347 static Module createModuleTrusted(final ModuleLayer parent, final ModuleDescriptor descriptor, final ClassLoader loader) {
1375 final PrivilegedAction<ModuleLayer> pa = () -> parent.defineModules(cf, name -> loader);
1404 ClassLoader loader = null;
1406 loader = clazz.getClassLoader();
1409 // Accessing loader of anonymous class fails (for extension
1410 // loader class too?). In any case, for us fetching Context
1411 // from class loader is just an optimization. We can always
1415 if (loader instanceof ScriptLoader) {
1416 return ((ScriptLoader)loader).getContext();
1524 final ScriptLoader loader = env._loader_per_compile ? createNewLoader() : scriptLoader;
1525 installer = new NamedContextCodeInstaller(this, cs, loader);