net.sourceforge.groboutils.util.classes.v1
Interface IUrlClassLoader

All Known Implementing Classes:
UrlClassLoader, UrlClassLoader

public interface IUrlClassLoader

An interface for loading a specific class from a given URL (which is probably a Jar file). Classes returned shouldn't be cached.

Since:
November 17, 2000 (GroboUtils Alpha 0.9.0)
Version:
$Date: 2003/02/10 22:52:36 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Method Summary
 void flush()
          Call to flush any cache stored in the interface.
 java.lang.Class loadClass(java.lang.String className, java.lang.String url)
          Load the given class from the given URL.
 

Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String className,
                                 java.lang.String url)
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.
url - the URL from which the class is loaded. If this is null, then the returned class is implementation specific.
Returns:
the loaded Class instance, or null if the class could not be found.

flush

public void flush()
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.



Copyright © 2001-2003 by The GroboUtils Project