|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
sun.misc.MIDPImplementationClassLoader
public class MIDPImplementationClassLoader
| Constructor Summary | |
|---|---|
MIDPImplementationClassLoader(URL[] base,
PermissionCollection pc,
ClassLoader parent)
|
|
| Method Summary | |
|---|---|
protected PermissionCollection |
getPermissions(CodeSource cs)
Returns the permissions for the given codesource object. |
Class |
loadClass(String classname,
boolean resolve)
Loads the class with the specified name. |
| Methods inherited from class java.net.URLClassLoader |
|---|
addURL, definePackage, findClass, findResource, findResources, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MIDPImplementationClassLoader(URL[] base,
PermissionCollection pc,
ClassLoader parent)
| Method Detail |
|---|
protected PermissionCollection getPermissions(CodeSource cs)
URLClassLoaderIf the protocol is "file" and the path specifies a file, then permission to read that file is granted. If protocol is "file" and the path is a directory, permission is granted to read all files and (recursively) all files and subdirectories contained in that directory.
If the protocol is not "file", then to connect to and accept connections from the URL's host is granted.
getPermissions in class URLClassLoadercs - the codesource
public Class loadClass(String classname,
boolean resolve)
throws ClassNotFoundException
ClassLoader Invoke ClassLoader.findLoadedClass(String) to check if the class
has already been loaded.
Invoke the loadClass method
on the parent class loader. If the parent is null the class
loader built-in to the virtual machine is used, instead.
Invoke the ClassLoader.findClass(String) method to find the
class.
If the class was found using the above steps, and the
resolve flag is true, this method will then invoke the ClassLoader.resolveClass(Class) method on the resulting Class object.
Subclasses of ClassLoader are encouraged to override ClassLoader.findClass(String), rather than this method.
loadClass in class ClassLoaderclassname - The name of the classresolve - If true then resolve the class
ClassNotFoundException - If the class could not be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||