Home
last modified time | relevance | path

Searched refs:classLoader (Results 1 – 25 of 26) sorted by relevance

12

/external/apache-http/src/org/apache/commons/logging/
DLogFactory.java687 public static void release(ClassLoader classLoader) { in release() argument
690 logDiagnostic("Releasing factory for classloader " + objectId(classLoader)); in release()
693 if (classLoader == null) { in release()
699 LogFactory factory = (LogFactory) factories.get(classLoader); in release()
702 factories.remove(classLoader); in release()
831 ClassLoader classLoader = null;
840 classLoader = (ClassLoader)method.invoke(Thread.currentThread(),
873 classLoader = getClassLoader(LogFactory.class);
890 return classLoader;
934 private static void cacheFactory(ClassLoader classLoader, LogFactory factory)
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
DClassLoaderResourceLoader.java53 private final ClassLoader classLoader; field in ClassLoaderResourceLoader
56 public ClassLoaderResourceLoader(ClassLoader classLoader, String basePath) { in ClassLoaderResourceLoader() argument
57 this.classLoader = classLoader; in ClassLoaderResourceLoader()
61 public ClassLoaderResourceLoader(ClassLoader classLoader) { in ClassLoaderResourceLoader() argument
62 this(classLoader, "."); in ClassLoaderResourceLoader()
68 InputStream stream = classLoader.getResourceAsStream(path); in open()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
DClassMap.java52 public void clear(ClassLoader classLoader) { in clear() argument
53 getMap(classLoader).clear(); in clear()
62 ClassLoader classLoader = key.getClassLoader(); in getMap() local
63 return getMap(classLoader); in getMap()
67 private Map<Class<?>, V> getMap(ClassLoader classLoader) { in getMap() argument
68 Object map = ClassLoaderLocalMap.get(classLoader, this); in getMap()
71 ClassLoaderLocalMap.put(classLoader, this, map); in getMap()
/external/dexmaker/src/main/java/com/google/dexmaker/
DAppDataDirGuesser.java30 ClassLoader classLoader = guessSuitableClassLoader(); in guess() local
33 clazz.cast(classLoader); in guess()
35 String pathFromThisClassLoader = getPathFromThisClassLoader(classLoader, clazz); in guess()
50 private String getPathFromThisClassLoader(ClassLoader classLoader, in getPathFromThisClassLoader() argument
57 return (String) pathField.get(classLoader); in getPathFromThisClassLoader()
65 String result = classLoader.toString(); in getPathFromThisClassLoader()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectricTestRunner.java66 private RobolectricClassLoader classLoader; field in RobolectricTestRunner
127 public RobolectricTestRunner(final Class<?> testClass, RobolectricClassLoader classLoader) in RobolectricTestRunner() argument
131 isInstrumented() ? null : classLoader, in RobolectricTestRunner()
229 …(Class<?> testClass, ClassHandler classHandler, RobolectricClassLoader classLoader, RobolectricCon… in RobolectricTestRunner() argument
230 this(testClass, classHandler, classLoader, robolectricConfig, new SQLiteMap()); in RobolectricTestRunner()
250 …stClass, final ClassHandler classHandler, final RobolectricClassLoader classLoader, final Robolect… in RobolectricTestRunner() argument
252 : ensureClassLoaderNotNull(classLoader).bootstrap(testClass)); in RobolectricTestRunner()
256 this.classLoader = ensureClassLoaderNotNull(classLoader); in RobolectricTestRunner()
260 Thread.currentThread().setContextClassLoader(classLoader); in RobolectricTestRunner()
270 Class<?> delegateClass = classLoader.bootstrap(this.getClass()); in RobolectricTestRunner()
[all …]
/external/littlemock/src/com/google/testing/littlemock/
DAppDataDirGuesser.java42 ClassLoader classLoader = AppDataDirGuesser.class.getClassLoader(); in guessSuitableDirectoryForGeneratedClasses() local
45 clazz.cast(classLoader); in guessSuitableDirectoryForGeneratedClasses()
48 getPathFromPathClassLoader(classLoader, clazz); in guessSuitableDirectoryForGeneratedClasses()
62 ClassLoader classLoader, Class<?> pathClassLoaderClass) { in getPathFromPathClassLoader() argument
68 return (String) pathField.get(classLoader); in getPathFromPathClassLoader()
79 String result = classLoader.toString(); in getPathFromPathClassLoader()
/external/jsilver/src/org/clearsilver/
DFactoryLoader.java106 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in newDefaultClearsilverFactory() local
108 loadClass(factoryClassName, classLoader); in newDefaultClearsilverFactory()
120 ClassLoader classLoader) throws ClassNotFoundException { in loadClass() argument
122 classLoader); in loadClass()
/external/javassist/src/main/javassist/bytecode/annotation/
DAnnotationImpl.java43 private ClassLoader classLoader; field in AnnotationImpl
77 classLoader = loader; in AnnotationImpl()
99 annotationType = classLoader.loadClass(typeName); in getAnnotationType()
148 return mv.getValue(classLoader, pool, method); in invoke()
166 return mv.getValue(classLoader, pool, method); in getDefault()
200 value = mv.getValue(classLoader, pool, methods[i]); in hashCode()
260 value = mv.getValue(classLoader, pool, methods[i]); in checkEquals()
/external/smack/src/org/jivesoftware/smack/
DSmackConfiguration.java84 for (ClassLoader classLoader : classLoaders) {
85 Enumeration<URL> configEnum = classLoader.getResources("META-INF/smack-config.xml");
364 for (ClassLoader classLoader : classLoaders) { in getClassLoaders()
365 if (classLoader != null) { in getClassLoaders()
366 loaders.add(classLoader); in getClassLoaders()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/bytecode/
DShadowWrangler.java131 public static Class<?> loadClass(String paramType, ClassLoader classLoader) { in loadClass() argument
144 clazz = classLoader.loadClass(paramType); in loadClass()
218 public Class<?> findShadowClass(Class<?> originalClass, ClassLoader classLoader) { in findShadowClass() argument
223 return loadClass(declaredShadowClassName, classLoader); in findShadowClass()
288 private ClassLoader classLoader; field in ShadowWrangler.InvocationPlan
298 this.classLoader = clazz.getClassLoader(); in InvocationPlan()
337 Class<?> originalClass = loadClass(clazz.getName(), classLoader); in prepare()
353 method = getMethod(findShadowClass(clazz, classLoader), methodName, paramClasses); in prepare()
374 return findShadowClass(declaringClass, classLoader); in findDeclaredShadowClassForMethod()
397 paramClasses[i] = loadClass(paramTypes[i], classLoader); in getParamClasses()
/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateLoader.java57 ClassLoader classLoader = getClass().getClassLoader(); in makeTemplateMap() local
60 BaseCompiledTemplate compiledTemplate = loadTemplateObject(className, classLoader); in makeTemplateMap()
80 protected BaseCompiledTemplate loadTemplateObject(String className, ClassLoader classLoader) { in loadTemplateObject() argument
82 Class<?> templateClass = classLoader.loadClass(className); in loadTemplateObject()
DPrecompiledTemplateMapFileReader.java135 ClassLoader classLoader = getClass().getClassLoader(); in getMapFileReader() local
136 InputStream in = classLoader.getResourceAsStream(templateMapFile); in getMapFileReader()
/external/smack/src/org/jivesoftware/smack/provider/
DProviderManager.java159 for (ClassLoader classLoader : classLoaders) { in initialize()
160 Enumeration<URL> providerEnum = classLoader.getResources( in initialize()
426 for (ClassLoader classLoader : classLoaders) { in getClassLoaders()
427 if (classLoader != null) { in getClassLoaders()
428 loaders.add(classLoader); in getClassLoaders()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
DRobolectricTestRunnerClassLoaderSetup.java15 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in testUsingClassLoader() local
16 … Assert.assertEquals(classLoader.getClass().getName(), RobolectricClassLoader.class.getName()); in testUsingClassLoader()
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/
DSubjectDomainCombinerTest.java93 ClassLoader classLoader = new URLClassLoader(new URL[] { url }); in testCombine() local
103 classLoader, principals); in testCombine()
110 assertSame("ClassLoader", classLoader, pd[0].getClassLoader()); in testCombine()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DJUnitCodeGen.java64 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in determineClassLoader() local
65 if ( classLoader == null ) { in determineClassLoader()
66 classLoader = JUnitCodeGen.class.getClassLoader(); in determineClassLoader()
68 return classLoader; in determineClassLoader()
71 …public JUnitCodeGen(GrammarInfo grammarInfo, ClassLoader classLoader, String testsuiteDir) throws … in JUnitCodeGen() argument
76 Class parserClass = locateParserClass( grammarInfo, classLoader ); in JUnitCodeGen()
85 …private Class locateParserClass(GrammarInfo grammarInfo, ClassLoader classLoader) throws ClassNotF… in locateParserClass() argument
90 return classLoader.loadClass( parserClassName ); in locateParserClass()
DgUnitExecutor.java83 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in determineClassLoader() local
84 if ( classLoader == null ) { in determineClassLoader()
85 classLoader = gUnitExecutor.class.getClassLoader(); in determineClassLoader()
87 return classLoader; in determineClassLoader()
/external/apache-http/src/org/apache/commons/logging/impl/
DSimpleLog.java638 ClassLoader classLoader = null; in getContextClassLoader() local
640 if (classLoader == null) { in getContextClassLoader()
648 classLoader = (ClassLoader)method.invoke(Thread.currentThread(), in getContextClassLoader()
685 if (classLoader == null) { in getContextClassLoader()
686 classLoader = SimpleLog.class.getClassLoader(); in getContextClassLoader()
690 return classLoader; in getContextClassLoader()
DLogFactoryImpl.java473 ClassLoader classLoader = getClassLoader(clazz); in initDiagnostics() local
476 if (classLoader == null) { in initDiagnostics()
479 classLoaderName = objectId(classLoader); in initDiagnostics()
1280 ClassLoader classLoader, in handleFlawedDiscovery() argument
/external/javassist/src/main/javassist/scopedpool/
DScopedClassPool.java39 protected WeakReference classLoader; field in ScopedClassPool
84 this.classLoader = new WeakReference(cl); in ScopedClassPool()
112 return (ClassLoader)classLoader.get(); in getClassLoader0()
/external/jmonkeyengine/engine/src/core/com/jme3/export/
DSavableClassUtil.java193 for (ClassLoader classLoader : loaders){ in fromName()
195 return (Savable) classLoader.loadClass(newClassName).newInstance(); in fromName()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/table/
DHtmlTooltipHelper.java272 ClassLoader classLoader = PropertyTable.class.getClassLoader(); in getTextLength() local
274 classLoader.loadClass("org.eclipse.jface.internal.text.html.HTML2TextReader"); in getTextLength()
/external/dexmaker/src/main/java/com/google/dexmaker/stock/
DProxyBuilder.java252 ClassLoader classLoader = dexMaker.generateAndLoad(parentClassLoader, dexCache); in buildProxyClass() local
254 proxyClass = loadClass(classLoader, generatedName); in buildProxyClass()
270 private Class<? extends T> loadClass(ClassLoader classLoader, String generatedName) in loadClass() argument
272 return (Class<? extends T>) classLoader.loadClass(generatedName); in loadClass()
/external/chromium_org/third_party/npapi/npspy/extern/java/
Djriext.h153 (*JRI_SetClassLoader_t)(JRIEnv* env, jref classLoader);
210 #define JRI_SetClassLoader(env, classLoader) \ argument
211 ((*(env))->SetClassLoader(env, classLoader))
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/
DSerializer.java217 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in registerPackage() local
219 Enumeration<URL> resources = classLoader.getResources(path); in registerPackage()

12