| Modifier and Type | Field and Description |
|---|---|
| pack-priv BshClassManager |
| Access | Constructor and Description |
|---|---|
| public | BshClassLoader(BshClassManager classManager, URL[]
URLs JARClassLoader seems to require absolute paths bases)
|
| public | BshClassLoader(BshClassManager
URLs JARClassLoader seems to require absolute paths classManager, BshClassPath bcp)
|
| protected | BshClassLoader(BshClassManager
URLs JARClassLoader seems to require absolute paths classManager)For use by children |
| Modifier and Type | Method and Description |
|---|---|
| public void | addURL(URL
the URL to be added to the search path of URLs url)Overrides java. |
| protected Class | findClass(String
the name of the class name)Overrides java. |
| pack-priv BshClassManager | |
| public Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. |
| classManager | back to summary |
|---|---|
| pack-priv BshClassManager classManager | |
| BshClassLoader | back to summary |
|---|---|
public BshClassLoader(BshClassManager classManager, URL[] bases)
| |
| BshClassLoader | back to summary |
|---|---|
public BshClassLoader(BshClassManager classManager, BshClassPath bcp)
| |
| BshClassLoader | back to summary |
|---|---|
| protected BshClassLoader(BshClassManager classManager) For use by children
| |
| addURL | back to summary |
|---|---|
| public void addURL(URL url) Overrides java. Doc from java. Appends the specified URL to the list of URLs to search for classes and resources.
If the URL specified is
| |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Find the correct source for the class... Try designated loader if any Try our URLClassLoader paths if any Try base loader if any Try system ???
| |
| getClassManager | back to summary |
|---|---|
| pack-priv BshClassManager getClassManager() | |
| loadClass | back to summary |
|---|---|
| public Class Overrides java. This modification allows us to reload classes which are in the Java VM user classpath. We search first rather than delegate to the parent classloader (or bootstrap path) first. An exception is for BeanShell core classes which are always loaded from the same classloader as the interpreter.
| |