net.groboclown.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.
- Version:
- Alpha 0.9.0
- Author:
- Matt Albrecht
Method Summary |
void |
flush()
Call to flush any cache stored in the interface. |
Class |
loadClass(String className,
String url)
Load the given class from the given URL. |
loadClass
public Class loadClass(String className,
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.
Written under the LGPL