org.apache.batik.script.rhino
public class RhinoClassLoader extends URLClassLoader implements GeneratedClassLoader
| Field Summary | |
|---|---|
| protected CodeSource | codeSource
CodeSource for classes defined by this loader |
| protected URL | documentURL
URL for the document referencing the script. |
| protected AccessControlContext | rhinoAccessControlContext
The AccessControlContext which can be associated with
code loaded by this class loader if it was running
stand-alone (i.e., not invoked by code with lesser
priviledges). |
| Constructor Summary | |
|---|---|
| RhinoClassLoader(URL documentURL, ClassLoader parent)
Constructor. | |
| Method Summary | |
|---|---|
| Class | defineClass(String name, byte[] data)
Define and load a Java class |
| AccessControlContext | getAccessControlContext()
Returns the AccessControlContext which should be associated with
RhinoCode. |
| protected PermissionCollection | getPermissions(CodeSource codesource)
Returns the permissions for the given CodeSource object.
|
| void | linkClass(Class clazz)
Links the Java class. |
Parameters: documentURL the URL from which to load classes and resources parent the parent class loader for delegation