net.groboclown.util.jplugin.v1
Class JarInspector
java.lang.Object
|
+--net.groboclown.util.jplugin.v1.Inspector
|
+--net.groboclown.util.jplugin.v1.URLInspector
|
+--net.groboclown.util.jplugin.v1.JarInspector
- class JarInspector
- extends URLInspector
Discovers the classes and beans inside of a Jar file.
Methods inherited from class java.lang.Object |
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
file
private transient JarFile file
tempfile
private transient File tempfile
JarInspector
public JarInspector(String filename)
throws IOException
- Parameters:
filename
- the name of the jar to load- Throws:
IllegalArgumentException
- thrown on a bad URL, bad
JAR file, a bad filename, or any other improper file error.
JarInspector
public JarInspector(URL url)
throws IOException
- Copy the given URL over to a temporary file, then
use that as a local Jar file
findClasses
public void findClasses()
throws IOException
- Overrides:
findClasses
in class Inspector
findClasses
protected void findClasses(JarFile file)
throws IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
Written under the LGPL