| java.lang.Object net.sourceforge.groboutils.util.classes.v1.jdk2.UrlClassLoader
UrlClassLoader | public class UrlClassLoader implements IUrlClassLoader(Code) | | A JDK 1.2+ URL Class Loader implementation.
New in version 1.0.0: This will attempt to load from the thread's
context loader if the URL is bad.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/05/06 05:35:01 $ since: November 17, 2000 (GroboUtils Alpha 0.9.0) |
UrlClassLoader | public UrlClassLoader()(Code) | | Default constructor
|
convertUrl | protected URL convertUrl(String url)(Code) | | Converts the given string to a fully qualified URL. If no
scheme is given, then it is converted to a File scheme.
|
flush | public void flush()(Code) | | Call to flush any cache stored in the interface. This allows for
a class loader to cache results, and free up memory when it is
not needed.
|
loadClass | public Class loadClass(String className, String url)(Code) | | Load the given class from the given URL. If the URL is null,
then it is up to the classloader to figure out where to load it from.
This should, in general, load the class from the default class loader.
Parameters: className - the exact class name to load. Parameters: url - the URL from which the class is loaded. If this isnull, then the returned class is implementation specific. the loaded Class instance, or null if the class couldnot be found or if the given URL is not valid. |
|
|