| net.sourceforge.groboutils.util.classes.v1.IUrlClassLoader
All known Subclasses: net.sourceforge.groboutils.util.classes.v1.jdk2.UrlClassLoader, net.sourceforge.groboutils.util.classes.v1.jdk0.UrlClassLoader,
IUrlClassLoader | public interface IUrlClassLoader (Code) | | An interface for loading a specific class from a given URL (which is
probably a Jar file). Classes returned shouldn't be cached.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:36 $ since: November 17, 2000 (GroboUtils Alpha 0.9.0) |
Method Summary | |
public void | flush() Call to flush any cache stored in the interface. | public Class | loadClass(String className, String url) Load the given class from the given URL. |
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. |
|
|