Searched defs:classLoader (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/main/java/libcore/reflect/
H A DInternalNames.java28 public static Class<?> getClass(ClassLoader classLoader, String internalName) { argument
30 Class<?> componentClass = getClass(classLoader, internalName.substring(1));
53 return classLoader.loadClass(name);
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DNewInstance.java41 static Object newInstance (ClassLoader classLoader, String className) argument
46 if (classLoader == null) {
49 driverClass = classLoader.loadClass(className);
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactory.java47 * or {@link #newInstance(String uri, String factoryClassName, ClassLoader classLoader)}
143 ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
144 if (classLoader == null) {
146 classLoader = XPathFactory.class.getClassLoader();
148 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).newFactory(uri);
166 ClassLoader classLoader) throws XPathFactoryConfigurationException {
178 if (classLoader == null) {
179 classLoader = Thread.currentThread().getContextClassLoader();
181 XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
165 newInstance(String uri, String factoryClassName, ClassLoader classLoader) argument
H A DXPathFactoryFinder.java97 private final ClassLoader classLoader; field in class:XPathFactoryFinder
111 this.classLoader = loader;
118 if (classLoader == Thread.currentThread().getContextClassLoader()) {
119 debugPrintln("using thread context class loader (" + classLoader + ") for search");
123 if (classLoader==ClassLoader.getSystemClassLoader()) {
124 debugPrintln("using system class loader (" + classLoader + ") for search");
128 debugPrintln("using class loader (" + classLoader + ") for search");
236 if( classLoader!=null )
237 clazz = classLoader.loadClass(className);
327 if (classLoader
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DNativeAllocationRegistry.java43 private final ClassLoader classLoader; field in class:NativeAllocationRegistry
58 * The <code>classLoader</code> argument should be the class loader used
68 * @param classLoader ClassLoader that was used to load the native
76 public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { argument
81 this.classLoader = classLoader;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DClassLoaderTest.java203 private static void assertGetResourceAsStreamNotNull(ClassLoader classLoader, argument
207 is = classLoader.getResourceAsStream(resourceName);
216 private static void assertGetResourceIsValid(ClassLoader classLoader, String resourceName) { argument
217 java.net.URL u = classLoader.getResource(resourceName);
/libcore/luni/src/main/java/javax/xml/datatype/
H A DFactoryFinder.java119 ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
123 + classLoader);
125 if (classLoader == null) {
128 classLoader = FactoryFinder.class.getClassLoader();
131 + classLoader);
134 return classLoader;
141 * @param classLoader ClassLoader to use to create named class.
149 ClassLoader classLoader)
154 if (classLoader == null) {
157 spiClass = classLoader
147 newInstance( String className, ClassLoader classLoader) argument
[all...]
H A DDatatypeFactory.java117 public static DatatypeFactory newInstance(String factoryClassName, ClassLoader classLoader) argument
122 if (classLoader == null) {
123 classLoader = Thread.currentThread().getContextClassLoader();
126 Class<?> type = classLoader != null
127 ? classLoader.loadClass(factoryClassName)
/libcore/luni/src/main/java/javax/xml/parsers/
H A DSAXParserFactory.java77 ClassLoader classLoader) {
81 if (classLoader == null) {
82 classLoader = Thread.currentThread().getContextClassLoader();
85 Class<?> type = classLoader != null
86 ? classLoader.loadClass(factoryClassName)
76 newInstance(String factoryClassName, ClassLoader classLoader) argument
H A DDocumentBuilderFactory.java65 ClassLoader classLoader) {
69 if (classLoader == null) {
70 classLoader = Thread.currentThread().getContextClassLoader();
73 Class<?> type = classLoader != null
74 ? classLoader.loadClass(factoryClassName)
64 newInstance(String factoryClassName, ClassLoader classLoader) argument
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformerFactory.java91 public static TransformerFactory newInstance(String factoryClassName, ClassLoader classLoader) argument
96 if (classLoader == null) {
97 classLoader = Thread.currentThread().getContextClassLoader();
100 Class<?> type = classLoader != null
101 ? classLoader.loadClass(factoryClassName)
/libcore/luni/src/main/java/javax/xml/validation/
H A DSchemaFactory.java205 ClassLoader classLoader) {
211 if (classLoader == null) {
212 classLoader = Thread.currentThread().getContextClassLoader();
215 Class<?> type = classLoader != null
216 ? classLoader.loadClass(factoryClassName)
204 newInstance(String schemaLanguage, String factoryClassName, ClassLoader classLoader) argument
H A DSchemaFactoryFinder.java101 private final ClassLoader classLoader; field in class:SchemaFactoryFinder
115 this.classLoader = loader;
122 if (classLoader == Thread.currentThread().getContextClassLoader()) {
123 debugPrintln("using thread context class loader ("+classLoader+") for search");
127 if (classLoader == ClassLoader.getSystemClassLoader()) {
128 debugPrintln("using system class loader ("+classLoader+") for search");
132 debugPrintln("using class loader (" + classLoader + ") for search");
261 if( classLoader!=null )
262 clazz = classLoader.loadClass(className);
293 if (classLoader
[all...]
/libcore/luni/src/test/java/libcore/util/
H A DNativeAllocationRegistryTest.java27 private ClassLoader classLoader = NativeAllocationRegistryTest.class.getClassLoader(); field in class:NativeAllocationRegistryTest
58 classLoader, getNativeFinalizer(), nativeSize);
66 classLoader, getNativeFinalizer(), nativeSize);
115 classLoader, getNativeFinalizer(), -8);
123 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), size);
145 = new NativeAllocationRegistry(classLoader, getNativeFinalizer(), 1024);
/libcore/ojluni/src/main/java/java/sql/
H A DDriverManager.java457 private static boolean isDriverAllowed(Driver driver, ClassLoader classLoader) { argument
462 aClass = Class.forName(driver.getClass().getName(), true, classLoader);
/libcore/ojluni/src/main/java/java/lang/
H A DRuntime.java964 public void loadLibrary(String libname, ClassLoader classLoader) { argument
968 loadLibrary0(classLoader, libname);
H A DClass.java132 private transient ClassLoader classLoader; field in class:Class
413 ClassLoader classLoader) throws ClassNotFoundException;
736 return (classLoader == null) ? BootClassLoader.getInstance() : classLoader;
2628 if (classLoader != c.classLoader) {
412 classForName(String className, boolean shouldInitialize, ClassLoader classLoader) argument

Completed in 3204 milliseconds