Package dalvik.system
Class PathClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- dalvik.system.BaseDexClassLoader
-
- dalvik.system.PathClassLoader
-
public class PathClassLoader extends BaseDexClassLoader
Provides a simpleClassLoaderimplementation that operates on a list of files and directories in the local file system, but does not attempt to load classes from the network. Android uses this class for its system class loader and for its application class loader(s).
-
-
Field Summary
-
Fields inherited from class java.lang.ClassLoader
proxyCache
-
-
Constructor Summary
Constructors Constructor Description PathClassLoader(String dexPath, ClassLoader parent)Creates aPathClassLoaderthat operates on a given list of files and directories.PathClassLoader(String dexPath, String libraryPath, ClassLoader parent)Creates aPathClassLoaderthat operates on two given lists of files and directories.
-
Method Summary
-
Methods inherited from class dalvik.system.BaseDexClassLoader
findClass, findLibrary, findResource, findResources, getLdLibraryPath, getPackage, toString
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
PathClassLoader
public PathClassLoader(String dexPath, ClassLoader parent)
Creates aPathClassLoaderthat operates on a given list of files and directories. This method is equivalent to callingPathClassLoader(String, String, ClassLoader)with anullvalue for the second argument (see description there).- Parameters:
dexPath- the list of jar/apk files containing classes and resources, delimited byFile.pathSeparator, which defaults to":"on Androidparent- the parent class loader
-
PathClassLoader
public PathClassLoader(String dexPath, String libraryPath, ClassLoader parent)
Creates aPathClassLoaderthat operates on two given lists of files and directories. The entries of the first list should be one of the following:- JAR/ZIP/APK files, possibly containing a "classes.dex" file as well as arbitrary resources.
- Raw ".dex" files (not inside a zip file).
- Parameters:
dexPath- the list of jar/apk files containing classes and resources, delimited byFile.pathSeparator, which defaults to":"on AndroidlibraryPath- the list of directories containing native libraries, delimited byFile.pathSeparator; may benullparent- the parent class loader
-
-