java.lang.Object | |||
↳ | java.lang.ClassLoader | ||
↳ | java.security.SecureClassLoader | ||
↳ | sun.reflect.misc.MethodUtil |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Finds the class with the specified binary name.
| |||||||||||
Returns the permissions for the given CodeSource object.
| |||||||||||
Loads the class with the specified binary name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Finds the class with the specified binary name.
This method should be overridden by class loader implementations that
follow the delegation model for loading classes, and will be invoked by
the loadClass
method after checking the
parent class loader for the requested class. The default implementation
throws a ClassNotFoundException.
name | The binary name of the class |
---|
ClassNotFoundException |
---|
Returns the permissions for the given CodeSource object.
This method is invoked by the defineClass method which takes a CodeSource as an argument when it is constructing the ProtectionDomain for the class being defined.
codesource | the codesource. |
---|
Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
Invoke 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 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 resolveClass(Class)
method on the resulting Class object.
Subclasses of ClassLoader are encouraged to override findClass(String)
, rather than this method.
name | The binary name of the class |
---|---|
resolve | If true then resolve the class |
ClassNotFoundException |
---|