public class RhinoClassLoader extends BundleProxyClassLoader
ContextFactory.getGlobal().initApplicationClassLoader(new RhinoClassLoader());
Modifier and Type | Method and Description |
---|---|
Class<?> |
findClass(String name) |
static RhinoClassLoader |
getInstance() |
static void |
registerURL(IScriptEngine engine,
URL url)
Add a URL to the search path of the classloader.
|
static void |
unregisterEngine(RhinoScriptEngine engine) |
findResource, findResources, getResource
clearAssertionStatus, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public static RhinoClassLoader getInstance()
public Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class BundleProxyClassLoader
ClassNotFoundException
public static void registerURL(IScriptEngine engine, URL url)
engine
- script engine usedurl
- url to add to classpathpublic static void unregisterEngine(RhinoScriptEngine engine)