Class ClassQueryTool
java.lang.Object
org.pentaho.reporting.libraries.base.util.ClassQueryTool
The class-query tool loads classes using a classloader and calls "processClass" for each class encountered. This is
highly expensive and sometimes dangerous excercise as the classloading may trigger static initializers and may
exhaust the "permgen" space of the Virtual machine.
If possible anyhow, do not use this class.
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processDirectory
(File directory) Processes all entries from a given directory, ignoring any subdirectory contents.
-
Method Details
-
processDirectory
Processes all entries from a given directory, ignoring any subdirectory contents. If the directory contains sub-directories these directories are not searched for JAR or ZIP files. In addition to the directory given as parameter, the direcories and JAR/ZIP-files on the classpath are also searched for entries. If directory is null, only the classpath is searched.- Parameters:
directory
- the directory to be searched, or null to just use the classpath.- Throws:
IOException
- if an error occured while loading the resources from the directory.SecurityException
- if access to the system properties or access to the classloader is restricted.
-