net.groboclown.util.jplugin.v1
Class URLInspector

java.lang.Object
  |
  +--net.groboclown.util.jplugin.v1.Inspector
        |
        +--net.groboclown.util.jplugin.v1.URLInspector
Direct Known Subclasses:
DirectoryInspector, JarInspector, SingleClassInspector

abstract class URLInspector
extends Inspector

Discovers the classes inside of a URL.


Field Summary
(package private)  URLClassLoader classLoader
           
private  URL url
           
 
Fields inherited from class net.groboclown.util.jplugin.v1.Inspector
classNames, sorter
 
Constructor Summary
protected URLInspector()
           
 
Method Summary
 Class getClass(String name)
           
protected  String getClassName(String filename)
           
 URL getURL()
           
 Object instantiate(String name)
           
protected  void setURL(URL url)
           
 
Methods inherited from class net.groboclown.util.jplugin.v1.Inspector
addClass, findClasses, getClassNames, getClassSorter, setClassSorter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

url

private URL url

classLoader

URLClassLoader classLoader
Constructor Detail

URLInspector

protected URLInspector()
Method Detail

setURL

protected void setURL(URL url)

getURL

public URL getURL()
Overrides:
getURL in class Inspector

getClass

public Class getClass(String name)
Overrides:
getClass in class Inspector

instantiate

public Object instantiate(String name)
Overrides:
instantiate in class Inspector

getClassName

protected String getClassName(String filename)


Written under the LGPL