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.


Field Summary
private  JarFile file
           
private  File tempfile
           
 
Fields inherited from class net.groboclown.util.jplugin.v1.URLInspector
classLoader, url
 
Fields inherited from class net.groboclown.util.jplugin.v1.Inspector
classNames, sorter
 
Constructor Summary
JarInspector(String filename)
           
JarInspector(URL url)
          Copy the given URL over to a temporary file, then use that as a local Jar file
 
Method Summary
protected  void finalize()
           
 void findClasses()
           
protected  void findClasses(JarFile file)
           
 
Methods inherited from class net.groboclown.util.jplugin.v1.URLInspector
getClass, getClassName, getURL, instantiate, setURL
 
Methods inherited from class net.groboclown.util.jplugin.v1.Inspector
addClass, getClassNames, getClassSorter, setClassSorter
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

file

private transient JarFile file

tempfile

private transient File tempfile
Constructor Detail

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
Method Detail

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