| java.net.URLClassLoader sun.applet.AppletClassLoader
AppletClassLoader | public class AppletClassLoader extends URLClassLoader (Code) | | This class defines the class loader for loading applet classes and
resources. It extends URLClassLoader to search the applet code base
for the class or resource after checking any loaded JAR files.
|
usageCount | int usageCount(Code) | | |
AppletClassLoader | protected AppletClassLoader(URL base)(Code) | | |
getPermissions | protected PermissionCollection getPermissions(CodeSource codesource)(Code) | | Returns the permissions for the given codesource object.
The implementation of this method first calls super.getPermissions,
to get the permissions
granted by the super class, and then adds additional permissions
based on the URL of the codesource.
If the protocol is "file"
and the path specifies a file, permission is granted to read all files
and (recursively) all files and subdirectories contained in
that directory. This is so applets with a codebase of
file:/blah/some.jar can read in file:/blah/, which is needed to
be backward compatible. We also add permission to connect back to
the "localhost".
Parameters: codesource - the codesource the permissions granted to the codesource |
grab | synchronized void grab()(Code) | | Grab this AppletClassLoader and its ThreadGroup/AppContext, so they
won't be destroyed.
|
release | synchronized void release()(Code) | | Release this AppletClassLoader and its ThreadGroup/AppContext.
If nothing else has grabbed this AppletClassLoader, its ThreadGroup
and AppContext will be destroyed.
Because this method may destroy the AppletClassLoader's ThreadGroup,
this method should NOT be called from within the AppletClassLoader's
ThreadGroup.
|
|
|