org.tinyjee.maven.dim.utils
Class JavaClassLoader

java.lang.Object
  extended by org.tinyjee.maven.dim.utils.JavaClassLoader

public class JavaClassLoader
extends Object

Is a singleton that loads java classes at source level using qdox.

Author:
Juergen_Kellerer, 2011-10-11

Method Summary
 JavaSource addSource(File basePath, String pathOrUrl)
           
 JavaSource addSource(File basePath, String pathOrUrl, boolean doNotLoadSourceTree)
           
 JavaSource addSource(URL sourceUrl, boolean doNotLoadSourceTree)
           
 JavaSource addSource(URL sourceUrl, Reader sourceContent)
           
 void addSourceTree(File sourceFolder)
           
 void clear()
           
 SortedSet<JavaClass> getClasses()
           
static JavaClassLoader getInstance()
           
 SortedSet<JavaPackage> getPackages()
           
 JavaSource getSource(URL sourceUrl)
           
 JavaSource[] getSources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JavaClassLoader getInstance()

addSource

public JavaSource addSource(File basePath,
                            String pathOrUrl)
                     throws IOException
Throws:
IOException

addSource

public JavaSource addSource(File basePath,
                            String pathOrUrl,
                            boolean doNotLoadSourceTree)
                     throws IOException
Throws:
IOException

addSource

public JavaSource addSource(URL sourceUrl,
                            Reader sourceContent)

addSource

public JavaSource addSource(URL sourceUrl,
                            boolean doNotLoadSourceTree)
                     throws IOException
Throws:
IOException

addSourceTree

public void addSourceTree(File sourceFolder)

getSource

public JavaSource getSource(URL sourceUrl)

getSources

public JavaSource[] getSources()

getClasses

public SortedSet<JavaClass> getClasses()

getPackages

public SortedSet<JavaPackage> getPackages()

clear

public void clear()