|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.util.classes.v1.jdk2.UrlClassLoader
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.
Constructor Summary | |
UrlClassLoader()
Default constructor |
Method Summary | |
protected java.net.URL |
convertUrl(java.lang.String url)
Converts the given string to a fully qualified URL. |
void |
flush()
Call to flush any cache stored in the interface. |
protected java.lang.ClassLoader |
getClassLoader(java.net.URL url)
|
java.lang.Class |
loadClass(java.lang.String className,
java.lang.String url)
Load the given class from the given URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UrlClassLoader()
Method Detail |
public java.lang.Class loadClass(java.lang.String className, java.lang.String url)
loadClass
in interface IUrlClassLoader
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.
public void flush()
flush
in interface IUrlClassLoader
protected java.net.URL convertUrl(java.lang.String url)
protected java.lang.ClassLoader getClassLoader(java.net.URL url)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |