|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--java.security.SecureClassLoader | +--java.net.URLClassLoader | +--org.apache.batik.script.rhino.RhinoClassLoader
This class loader implementation will work whether or not the documentURL is null.
Field Summary | |
protected java.security.CodeSource |
codeSource
CodeSource for classes defined by this loader |
protected java.net.URL |
documentURL
URL for the document referencing the script. |
protected java.security.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(java.net.URL documentURL)
Constructor. |
Method Summary | |
java.lang.Class |
defineClass(java.lang.String name,
byte[] data)
Define and load a Java class |
java.security.AccessControlContext |
getAccessControlContext()
Returns the AccessControlContext which should be associated with RhinoCode. |
protected java.security.PermissionCollection |
getPermissions(java.security.CodeSource codesource)
Returns the permissions for the given CodeSource object. |
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.ClassLoader |
defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.net.URL documentURL
protected java.security.CodeSource codeSource
protected java.security.AccessControlContext rhinoAccessControlContext
Constructor Detail |
public RhinoClassLoader(java.net.URL documentURL)
documentURL
- the URL from which to load classes and resourcesMethod Detail |
public java.lang.Class defineClass(java.lang.String name, byte[] data)
public java.security.AccessControlContext getAccessControlContext()
protected java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
getPermissions
in class java.net.URLClassLoader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |