/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/reflect/ |
H A D | InternalNamesTest.java | 22 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/libcore/reflect/ |
H A D | ParameterizedTypeImpl.java | 30 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 D | GenericSignatureParser.java | 79 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/main/java/javax/xml/validation/ |
H A D | SchemaFactoryFinder.java | 107 * @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 D | XPathFactoryFinder.java | 103 * @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/sun/misc/ |
H A D | Service.java | 80 * 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...] |
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
H A D | MethodType.java | 97 public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | ServiceLoader.java | 83 * 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 D | ResourceBundle.java | 286 * 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/dalvik/src/main/java/dalvik/system/ |
H A D | DexFile.java | 66 * Private version with class loader argument. 70 * @param loader 71 * the class loader object creating the DEX file object 75 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) argument 77 this(file.getPath(), loader, elements); 102 * Private version with class loader argument. 106 * @param loader 107 * the class loader creating the DEX file object 111 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { argument 112 mCookie = openDexFile(fileName, null, 0, loader, element 133 DexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument 209 loadDex(String sourcePathName, String outputPathName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument 276 loadClass(String name, ClassLoader loader) argument 288 loadClassBinaryName(String name, ClassLoader loader, List<Throwable> suppressed) argument 292 defineClass(String name, ClassLoader loader, Object cookie, DexFile dexFile, List<Throwable> suppressed) argument 364 openDexFile(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument 387 defineClassNative(String name, ClassLoader loader, Object cookie, DexFile dexFile) argument 396 openDexFileNative(String sourceName, String outputName, int flags, ClassLoader loader, DexPathList.Element[] elements) argument [all...] |
H A D | DexPathList.java | 132 // 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/ojluni/src/main/java/java/lang/ |
H A D | Package.java | 108 * 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 D | Runtime.java | 884 void load(String absolutePath, ClassLoader loader) { argument 892 String error = doLoad(absolutePath, loader); 971 synchronized void loadLibrary0(ClassLoader loader, String libname) { argument 977 if (loader != null) { 978 String filename = loader.findLibrary(libraryName); 984 throw new UnsatisfiedLinkError(loader + " couldn't find \"" + 987 String error = doLoad(filename, loader); 1002 String error = doLoad(candidate, loader); 1043 private String doLoad(String name, ClassLoader loader) { argument 1064 if (loader ! 1077 nativeLoad(String filename, ClassLoader loader, String librarySearchPath) argument [all...] |
H A D | ClassLoader.java | 66 * 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 D | Class.java | 93 * 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/lang/reflect/ |
H A D | Proxy.java | 111 * 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/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ProxyTest.java | 31 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...] |