Searched refs:loader (Results 1 - 25 of 29) sorted by relevance

12

/libcore/luni/src/test/java/libcore/reflect/
H A DInternalNamesTest.java22 private final ClassLoader loader = InternalNames.class.getClassLoader(); field in class:InternalNamesTest
26 InternalNames.getClass(loader, null);
41 assertEquals(byte.class, InternalNames.getClass(loader, "B"));
42 assertEquals(char.class, InternalNames.getClass(loader, "C"));
43 assertEquals(double.class, InternalNames.getClass(loader, "D"));
44 assertEquals(float.class, InternalNames.getClass(loader, "F"));
45 assertEquals(int.class, InternalNames.getClass(loader, "I"));
46 assertEquals(long.class, InternalNames.getClass(loader, "J"));
47 assertEquals(short.class, InternalNames.getClass(loader, "S"));
48 assertEquals(boolean.class, InternalNames.getClass(loader, "
[all...]
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DXMLReaderFactory.java110 ClassLoader loader = NewInstance.getClassLoader ();
123 if (loader == null)
126 in = loader.getResourceAsStream (service);
150 return loadClass (loader, className);
185 private static XMLReader loadClass (ClassLoader loader, String className) argument
189 return (XMLReader) NewInstance.newInstance (loader, className);
/libcore/dalvik/src/main/java/dalvik/system/
H A DDexFile.java67 * Private version with class loader argument.
71 * @param loader
72 * the class loader object creating the DEX file object
76 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) argument
78 this(file.getPath(), loader, elements);
103 * Private version with class loader argument.
107 * @param loader
108 * the class loader creating the DEX file object
112 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { argument
113 mCookie = openDexFile(fileName, null, 0, loader, element
135 DexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
211 loadDex(String sourcePathName, String outputPathName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
279 loadClass(String name, ClassLoader loader) argument
291 loadClassBinaryName(String name, ClassLoader loader, List<Throwable> suppressed) argument
295 defineClass(String name, ClassLoader loader, Object cookie, DexFile dexFile, List<Throwable> suppressed) argument
370 openDexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
393 defineClassNative(String name, ClassLoader loader, Object cookie, DexFile dexFile) argument
402 openDexFileNative(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument
[all...]
H A DDexPathList.java132 // 1. This class loader's library path for application libraries (librarySearchPath):
262 ClassLoader loader) {
263 return makeElements(files, optimizedDirectory, suppressedExceptions, false, loader);
271 ClassLoader loader) {
272 return makeElements(files, null, suppressedExceptions, true, loader);
287 ClassLoader loader) {
313 dex = loadDexFile(file, optimizedDirectory, loader, elements);
323 dex = loadDexFile(file, optimizedDirectory, loader, elements);
353 * the {@code loader} if it is not null.
355 private static DexFile loadDexFile(File file, File optimizedDirectory, ClassLoader loader, argument
260 makeDexElements(List<File> files, File optimizedDirectory, List<IOException> suppressedExceptions, ClassLoader loader) argument
269 makePathElements(List<File> files, List<IOException> suppressedExceptions, ClassLoader loader) argument
284 makeElements(List<File> files, File optimizedDirectory, List<IOException> suppressedExceptions, boolean ignoreDexFiles, ClassLoader loader) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DLoadLocaleProviderTestHelper.java28 URLClassLoader loader = new URLClassLoader(classpathes);
30 thread.setContextClassLoader(loader);
/libcore/luni/src/main/java/libcore/reflect/
H A DParameterizedTypeImpl.java30 private final ClassLoader loader; field in class:ParameterizedTypeImpl
33 ListOfTypes args, ClassLoader loader) {
40 this.loader = loader;
65 rawType = Class.forName(rawTypeName, false, loader);
32 ParameterizedTypeImpl(ParameterizedTypeImpl ownerType, String rawTypeName, ListOfTypes args, ClassLoader loader) argument
H A DGenericSignatureParser.java79 public ClassLoader loader; field in class:GenericSignatureParser
100 public GenericSignatureParser(ClassLoader loader) { argument
101 this.loader = loader;
319 new ParameterizedTypeImpl(null, qualIdent.toString(), typeArgs, loader);
329 loader);
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DProxyTest.java31 private final ClassLoader loader = getClass().getClassLoader(); field in class:ProxyTest
40 * Make sure the proxy's class loader fails if it cannot see the class
71 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsFloat.class},
80 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsInteger.class},
89 Proxy.newProxyInstance(loader, new Class[] {ReturnsInt.class, ReturnsVoid.class},
98 Proxy.newProxyInstance(loader, new Class[] {ReturnsInteger.class, ReturnsString.class },
106 Proxy.newProxyInstance(loader, new Class[] {ReturnsString.class, ReturnsCharSequence.class},
108 Proxy.newProxyInstance(loader, new Class[]{ReturnsObject.class, ReturnsCharSequence.class,
110 Proxy.newProxyInstance(loader, new Class[]{ReturnsObject.class, ReturnsCharSequence.class,
117 Proxy.newProxyInstance(loader, ne
[all...]
H A DClassLoaderReflectionTest.java33 * This class creates another class loader to load multiple copies of various
35 * class names using the correct class loader.
41 * than the one in the application class loader!
54 ClassLoader loader = new ClassLoaderBuilder().withPrivateCopy(prefix).build();
55 aClass = loader.loadClass(prefix + "$A");
56 bClass = loader.loadClass(prefix + "$B");
57 cClass = loader.loadClass(prefix + "$C");
58 dClass = loader.loadClass(prefix + "$D");
59 eClass = loader.loadClass(prefix + "$E");
60 fClass = loader
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DRuntime.java875 void load(String absolutePath, ClassLoader loader) { argument
881 String error = doLoad(absolutePath, loader);
959 synchronized void loadLibrary0(ClassLoader loader, String libname) { argument
965 if (loader != null) {
966 String filename = loader.findLibrary(libraryName);
972 throw new UnsatisfiedLinkError(loader + " couldn't find \"" +
975 String error = doLoad(filename, loader);
990 String error = doLoad(candidate, loader);
1031 private String doLoad(String name, ClassLoader loader) { argument
1052 if (loader !
1065 nativeLoad(String filename, ClassLoader loader, String librarySearchPath) argument
[all...]
H A DClassLoader.java66 * A class loader is an object that is responsible for loading classes. The
68 * href="#name">binary name</a> of a class, a class loader should attempt to
79 * The class loader for an array class, as returned by {@link
80 * Class#getClassLoader()} is the same as the class loader for its element
82 * class loader.
93 * associated parent class loader. When requested to find a class or
95 * class or resource to its parent class loader before attempting to find the
96 * class or resource itself. The virtual machine's built-in class loader,
97 * called the "bootstrap class loader", does not itself have a parent but may
110 * loading can lead to deadlocks because the loader loc
183 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in class:ClassLoader.SystemClassLoader
[all...]
H A DPackage.java108 * loader to be found.
272 * loader created the package instance with the appropriate attributes. Typically,
313 * The class's class loader is used to find the package instance
314 * corresponding to the specified class. If the class loader
315 * is the bootstrap class loader, which may be represented by
317 * loaded by the bootstrap class loader is searched to find the package.
320 * if the class loader created the package
384 packageInfo = Class.forName(pkgName + ".package-info", false, loader);
458 URL sealbase, ClassLoader loader)
468 this.loader
455 Package(String name, String spectitle, String specversion, String specvendor, String impltitle, String implversion, String implvendor, URL sealbase, ClassLoader loader) argument
478 Package(String name, Manifest man, URL url, ClassLoader loader) argument
642 private transient final ClassLoader loader; field in class:Package
[all...]
H A DClass.java93 * loader.
131 /** defining class loader, or null for the "bootstrap" system loader. */
301 * where {@code currentLoader} denotes the defining class loader of
332 * interface with the given string name, using the given class loader.
336 * loader is used to load the class or interface. If the parameter
337 * {@code loader} is null, the class is loaded through the bootstrap
338 * class loader. The class is initialized only if the
369 * <p> If the {@code loader} is {@code null}, and a security
370 * manager is present, and the caller's class loader i
391 forName(String name, boolean initialize, ClassLoader loader) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DServiceLoader.java83 * class loader that was initially queried to locate the configuration file;
84 * note that this is not necessarily the class loader from which the file was
88 * service loader maintains a cache of the providers that have been loaded so
157 * the class path of a class loader that is used for provider loading includes
176 * The type of the service to be loaded by this loader
191 // The class loader used to locate, load, and instantiate providers
192 private ClassLoader loader; field in class:ServiceLoader
201 * Clear this loader's provider cache so that all providers will be
206 * providers from scratch, just as is done by a newly-created loader.
213 lookupIterator = new LazyIterator(service, loader);
321 ClassLoader loader; field in class:ServiceLoader.LazyIterator
326 LazyIterator(Class<S> service, ClassLoader loader) argument
473 load(Class<S> service, ClassLoader loader) argument
[all...]
H A DResourceBundle.java286 * class loader) to either a resource bundle or NONEXISTENT_BUNDLE wrapped by a
424 // When the caller's loader is the boot class loader, cl is null
426 // return the same class loader that the application is
446 private static final ClassLoader loader = ClassLoader.getSystemClassLoader(); field in class:ResourceBundle.RBClassLoader
451 if (loader != null) {
452 return loader.loadClass(name);
457 if (loader != null) {
458 return loader.getResource(name);
463 if (loader !
516 CacheKey(String baseName, Locale locale, ClassLoader loader) argument
1024 getBundle(String baseName, Locale locale, ClassLoader loader) argument
1243 getBundle(String baseName, Locale targetLocale, ClassLoader loader, Control control) argument
1251 getBundleImpl(String baseName, Locale locale, ClassLoader loader, Control control) argument
1695 clearCache(ClassLoader loader) argument
2561 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument
2726 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DService.java80 * class loader that was initially queried to locate the configuration file;
81 * note that this is not necessarily the class loader that found the file.
245 ClassLoader loader; field in class:Service.LazyIterator
251 private LazyIterator(Class service, ClassLoader loader) { argument
253 this.loader = loader;
263 if (loader == null)
266 configs = loader.getResources(fullName);
289 c = Class.forName(cn, false, loader);
317 * given service using the given class loader
353 providers(Class service, ClassLoader loader) argument
[all...]
H A DURLClassPath.java126 for (Loader loader : loaders) {
128 loader.close();
175 Loader loader;
176 for (int i = 0; (loader = getLoader(i)) != null; i++) {
177 URL url = loader.findResource(name, check);
198 Loader loader;
199 for (int i = 0; (loader = getLoader(i)) != null; i++) {
200 Resource res = loader.getResource(name, check);
225 Loader loader;
226 while ((loader
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DServiceLoaderTest.java32 ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.class);
33 Iterator<ServiceLoaderTestInterface> it = loader.iterator();
/libcore/luni/src/main/java/javax/xml/validation/
H A DSchemaFactoryFinder.java107 * @param loader
111 * If this parameter is null, the default system class loader
114 public SchemaFactoryFinder(ClassLoader loader) { argument
115 this.classLoader = loader;
123 debugPrintln("using thread context class loader ("+classLoader+") for search");
128 debugPrintln("using system class loader ("+classLoader+") for search");
132 debugPrintln("using class loader (" + classLoader + ") for search");
399 * @param loader the classloader to search
403 private static String which(String classname, ClassLoader loader) { argument
406 if (loader
[all...]
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactoryFinder.java103 * @param loader
107 * If this parameter is null, the default system class loader
110 public XPathFactoryFinder(ClassLoader loader) { argument
111 this.classLoader = loader;
119 debugPrintln("using thread context class loader (" + classLoader + ") for search");
124 debugPrintln("using system class loader (" + classLoader + ") for search");
128 debugPrintln("using class loader (" + classLoader + ") for search");
359 * @param loader the classloader to search
363 private static String which(String classname, ClassLoader loader) { argument
365 if (loader
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DProxy.java111 * defined by the same class loader and the same package with particular
130 * loader, such as {@code java.lang.Object}, because the code for a
242 /** maps a class loader to the proxy class cache for that loader */
307 * given a class loader and an array of interfaces. The proxy class
308 * will be defined by the specified class loader and will implement
311 * loader, then the existing proxy class will be returned; otherwise,
313 * and defined by the class loader.
327 * specified class loader. In other words, for class loader
380 getProxyClass(ClassLoader loader, Class<?>... interfaces) argument
391 getProxyClass0(ClassLoader loader, Class<?>... interfaces) argument
729 newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) argument
816 generateProxy(String name, Class<?>[] interfaces, ClassLoader loader, Method[] methods, Class<?>[][] exceptions) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DSealedObject.java483 ClassLoader loader = Thread.currentThread().getContextClassLoader();
484 if (loader == null) {
488 loader = systemClassLoader;
489 if (loader == null) {
494 return Class.forName(v.getName(), false, loader);
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodType.java97 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) argument
/libcore/luni/src/main/java/javax/xml/datatype/
H A DFactoryFinder.java122 "Using context class loader: "
130 "Using the class loader of FactoryFinder: "
325 ClassLoader loader = clazz.getClassLoader();
329 if (loader != null) {
330 it = loader.getResource(classnameAsResource);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DResourceBundleTest.java99 @KnownFailure("It's not allowed to pass null as parent class loader to"
122 URLClassLoader loader = new URLClassLoader(urls, null);
129 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader);
134 ResourceBundle.getBundle(null, Locale.getDefault(), loader);
141 ResourceBundle.getBundle(name, null, loader);
155 ResourceBundle.getBundle("", Locale.getDefault(), loader);

Completed in 554 milliseconds

12