/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
H A D | ImplForType.java | 28 private ClassLoader loader; field in class:ImplForType 32 ListOfTypes args, ClassLoader loader) { 36 this.loader = loader; 62 rawType = Class.forName(rawTypeName, false, loader); 31 ImplForType(ImplForType ownerType, String rawTypeName, ListOfTypes args, ClassLoader loader) argument
|
H A D | GenericSignatureParser.java | 76 public ClassLoader loader; field in class:GenericSignatureParser 97 public GenericSignatureParser(ClassLoader loader) { argument 98 this.loader = loader; 305 new ImplForType(null, qualIdent.toString(), typeArgs, loader); 315 loader);
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
H A D | XMLReaderFactory.java | 110 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/luni/src/test/java/libcore/java/util/ |
H A D | ServiceLoaderTest.java | 31 ServiceLoader<ServiceLoaderTestInterface> loader = ServiceLoader.load(ServiceLoaderTestInterface.class); 32 Iterator<ServiceLoaderTestInterface> it = loader.iterator();
|
/libcore/luni/src/main/java/java/lang/reflect/ |
H A D | Proxy.java | 71 * must be visible from the supplied class loader; no duplicates are 74 * @param loader 75 * the class loader that will define the proxy class 88 public static Class<?> getProxyClass(ClassLoader loader, argument 104 if (loader != next.getClassLoader()) { 106 if (next != Class.forName(name, false, loader)) { 108 " is not visible from class loader"); 111 throw new IllegalArgumentException(name + " is not visible from class loader"); 131 // search cache for matching proxy class using the class loader 134 .get(loader); 205 newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) argument 270 generateProxy(String name, Class[] interfaces, ClassLoader loader) argument [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexFile.java | 124 * application; instead, use a class loader such as 181 * If you are not calling this from a class loader, this is most likely not 191 * @param loader 192 * the class loader that tries to load the class (in most cases 198 public Class loadClass(String name, ClassLoader loader) { argument 200 return loadClassBinaryName(slashName, loader); 210 public Class loadClassBinaryName(String name, ClassLoader loader) { argument 211 return defineClass(name, loader, mCookie); 214 private native static Class defineClass(String name, ClassLoader loader, int cookie); argument
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Runtime.java | 334 void load(String pathName, ClassLoader loader) { argument 338 String error = nativeLoad(pathName, loader); 361 void loadLibrary(String libraryName, ClassLoader loader) { argument 362 if (loader != null) { 363 String filename = loader.findLibrary(libraryName); 366 + " from loader " + loader 369 String error = nativeLoad(filename, loader); 383 String error = nativeLoad(candidate, loader); 399 private static native String nativeLoad(String filename, ClassLoader loader); argument [all...] |
H A D | ClassLoader.java | 53 * parent class loaders. Only if the parent class loader cannot satisfy the 54 * request, the child class loader itself tries to handle it. 69 * classes from the classpath. It is not equal to the bootstrap class loader - 74 * creation of the system class loader until first use. We use a static 81 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); field in class:ClassLoader.SystemClassLoader 90 * The packages known to the class loader. 95 * Create the system class loader. Note this is NOT the bootstrap class 96 * loader (which is managed by the VM). We use a null value for the parent 97 * to indicate that the bootstrap loader is our parent. 120 * Returns the system class loader [all...] |
H A D | Class.java | 156 * first. This is done through either the class loader of the calling class 183 * first. This is done through either the specified class loader or one of 193 * the class loader to use to load the class. 235 * @param classLoader The class loader to use to load the class 362 * Returns the class loader which was used to load the class represented by 364 * classes that were loaded by the bootstrap class loader. The Android 366 * representation of the bootstrap class loader. 368 * @return the class loader for the represented class. 376 ClassLoader loader = getClassLoaderImpl(); 377 if (loader [all...] |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ClassLoaderReflectionTest.java | 33 * 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/luni/src/main/java/java/util/logging/ |
H A D | MemoryHandler.java | 91 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 92 if (loader == null) { 93 loader = ClassLoader.getSystemClassLoader(); 95 Class<?> targetClass = loader.loadClass(targetName);
|
H A D | Handler.java | 80 ClassLoader loader = Thread.currentThread().getContextClassLoader(); 81 if (loader == null) { 82 loader = ClassLoader.getSystemClassLoader(); 84 Class<?> c = loader.loadClass(className);
|
/libcore/luni/src/main/java/java/util/ |
H A D | ResourceBundle.java | 206 * @param loader 213 ClassLoader loader) throws MissingResourceException { 214 if (loader == null) { 215 throw new NullPointerException("loader == null"); 226 bundle = handleGetBundle(false, bundleName, locale, loader); 229 bundle = handleGetBundle(true, bundleName, defaultLocale, loader); 290 * @param loader 291 * the class loader to load resource 299 Locale targetLocale, ClassLoader loader, 303 Object cacheKey = loader ! 212 getBundle(String bundleName, Locale locale, ClassLoader loader) argument 298 getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control) argument 331 processGetBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control, boolean expired, ResourceBundle result) argument 477 handleGetBundle(boolean loadBase, String base, Locale locale, ClassLoader loader) argument 613 clearCache(ClassLoader loader) argument 879 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument 976 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument [all...] |
/libcore/luni/src/main/java/javax/xml/validation/ |
H A D | SchemaFactoryFinder.java | 92 * @param loader 96 * If this parameter is null, the default system class loader 99 public SchemaFactoryFinder(ClassLoader loader) { argument 100 this.classLoader = loader; 108 debugPrintln("using thread context class loader ("+classLoader+") for search"); 113 debugPrintln("using system class loader ("+classLoader+") for search"); 117 debugPrintln("using class loader (" + classLoader + ") for search"); 402 * @param loader the classloader to search 406 private static String which(String classname, ClassLoader loader) { argument 409 if (loader [all...] |
/libcore/luni/src/main/java/javax/xml/xpath/ |
H A D | XPathFactoryFinder.java | 88 * @param loader 92 * If this parameter is null, the default system class loader 95 public XPathFactoryFinder(ClassLoader loader) { argument 96 this.classLoader = loader; 104 debugPrintln("using thread context class loader (" + classLoader + ") for search"); 109 debugPrintln("using system class loader (" + classLoader + ") for search"); 113 debugPrintln("using class loader (" + classLoader + ") for search"); 362 * @param loader the classloader to search 366 private static String which(String classname, ClassLoader loader) { argument 368 if (loader [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | ResourceBundleTest.java | 91 @KnownFailure("It's not allowed to pass null as parent class loader to" 114 URLClassLoader loader = new URLClassLoader(urls, null); 121 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader); 126 ResourceBundle.getBundle(null, Locale.getDefault(), loader); 133 ResourceBundle.getBundle(name, null, loader); 147 ResourceBundle.getBundle("", Locale.getDefault(), loader);
|
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectStreamField.java | 293 void resolve(ClassLoader loader) { argument 311 Class<?> cl = Class.forName(className, false, loader);
|
H A D | ObjectInputStream.java | 95 // Original caller's class loader, used to perform class lookups 463 * enabled. Only trusted subclasses (loaded with system class loader) are 1673 // Resolve the field signatures using the class loader of the 1677 ClassLoader loader = newClassDesc.forClass() == null ? callerClassLoader 1680 element.resolve(loader); 1766 ClassLoader loader = ClassLoader.getSystemClassLoader(); 1769 interfaces[i] = Class.forName(interfaceNames[i], false, loader); 1772 return Proxy.getProxyClass(loader, interfaces); 2002 // Remember the caller's class loader 2016 // No more need to remember the caller's class loader [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | FactoryFinder.java | 103 "Using context class loader: " 111 "Using the class loader of FactoryFinder: " 321 ClassLoader loader = clazz.getClassLoader(); 325 if (loader != null) { 326 it = loader.getResource(classnameAsResource);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestCase.java | 66 ClassLoader loader = ClassLoader.getSystemClassLoader(); 68 Class runnerClass = loader.loadClass("org.w3c.domts.JUnitRunner"); 79 Class argsClass = loader.loadClass("[Ljava.lang.String;");
|
/libcore/luni/src/test/java/dalvik/system/ |
H A D | DexClassLoaderTest.java | 85 private static void copyResource(ClassLoader loader, String resourceName, argument 92 loader.getResourceAsStream(PACKAGE_PATH + resourceName);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldClassTest.java | 323 ClassLoader loader = new URLClassLoader(new URL[] { url }, 326 Class.forName(classNameLinkageError, true, loader); 510 * ClassLoader loader = new URLClassLoader(new URL[] { url }, null); 513 * Class<?> clazz = loader.loadClass(illegalClassName);
|