| java.net.URLClassLoader abbot.util.PathClassLoader abbot.util.NonDelegatingClassLoader
All known Subclasses: abbot.script.AppClassLoader,
NonDelegatingClassLoader | public class NonDelegatingClassLoader extends PathClassLoader (Code) | | Provides support for loading a class before checking the parent
class loader for it. If the shouldDelegate method returns false for a
given class name, it will defer to its parent class loader only if the
class is not found in this loader's path. This provides a means for
reloading classes that would otherwise be permanently cached by the app
or boot class loaders.
The name for this class is not quite correct; it will delegate to
its parent if it doesn't find a given class.
|
Method Summary | |
public Class | findClass(String name) Find the given class in the search path. | protected synchronized Class | loadClass(String name, boolean resolve) Load the given class, but attempt to load before the parent if
shouldDelegate returns false for the given class. | protected boolean | shouldDelegate(String name) Returns whether the given class should be given to the parent class
loader to try before this one does. |
loadClass | protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException(Code) | | Load the given class, but attempt to load before the parent if
shouldDelegate returns false for the given class.
|
shouldDelegate | protected boolean shouldDelegate(String name)(Code) | | Returns whether the given class should be given to the parent class
loader to try before this one does. The default implementation always
returns false. Making this method return true will revert to the
standard class loader behavior.
|
|
|