org.pentaho.reporting.libraries.base.util
public abstract class ClassQueryTool extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
ClassQueryTool()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValidClass(java.lang.String className)
Checks, whether the class is valid.
|
protected abstract void |
processClass(java.lang.ClassLoader classLoader,
java.lang.Class c)
The handler method that is called for every class encountered on the classpath.
|
void |
processDirectory(java.io.File directory)
Processes all entries from a given directory, ignoring any subdirectory contents.
|
protected void |
processEntry(java.lang.ClassLoader classLoader,
java.lang.String entryName)
Processes a single class-file entry.
|
protected void processEntry(java.lang.ClassLoader classLoader,
java.lang.String entryName)
classLoader - the classloader that should be used for class- and resource loading.entryName - the file name in the classpath.protected boolean isValidClass(java.lang.String className)
className - the name of the class.protected abstract void processClass(java.lang.ClassLoader classLoader,
java.lang.Class c)
classLoader - the classloader used to load the class.c - the class that should be handled.public void processDirectory(java.io.File directory)
throws java.io.IOException
directory - the directory to be searched, or null to just use the classpath.java.io.IOException - if an error occured while loading the resources from the directory.java.lang.SecurityException - if access to the system properties or access to the classloader is restricted.