InterfaceClassFinder V1.0
by Matthew Ford
2009/01/06
A C D F G I M N P R S

A

addConsumer(T) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Add a consumer to be called for each class found.
au.com.forward.interfaceClassFinder - package au.com.forward.interfaceClassFinder
The main class is FindInterfaceClasses, see below for the Licence Agreement.

C

callConsumers(String, String, File) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Call all consumers for this class file.
callConsumers(String, JarEntry, File) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Call all consumers for this jar file entry.
Note: the consumer must open the file and find the jarEntry passed in.
ClasspathScanner<T extends IClasspathProcessor> - Class in au.com.forward.interfaceClassFinder
This class scans the classpath and calls each consumer for each class found.
ClasspathScanner() - Constructor for class au.com.forward.interfaceClassFinder.ClasspathScanner
 
consumers - Variable in class au.com.forward.interfaceClassFinder.ClasspathScanner
 

D

DOT_CLASS - Static variable in class au.com.forward.interfaceClassFinder.ClasspathScanner
 

F

findClassNames(Class) - Static method in class au.com.forward.interfaceClassFinder.FindInterfaceClasses
Scans the classpath and returns a list of fully qualified class names that implement the given interface class.
Only classes which implement the interface and have a no-arg public constructor are returned.
The interface can be implemented by a super class or the class can implement an interface that extends the given one.
FindInterfaceClasses - Class in au.com.forward.interfaceClassFinder
This class finds all classes that implement a given interface and returns the class names as a list.
Java libraries are not scanned.
FindInterfaceClasses() - Constructor for class au.com.forward.interfaceClassFinder.FindInterfaceClasses
 

G

getClassNames(Class) - Static method in class au.com.forward.interfaceClassFinder.FindInterfaceClasses
Having called findClassNames() once you can then call this method with another interface class to find the classes that implement that interface.
getConsumers() - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Return an array of all the current consumers registered with this scanner.
Changes to this array does not add or remove consumers.

I

IClasspathProcessor - Interface in au.com.forward.interfaceClassFinder
This classes implementing this interface can be added as consumers to the ClasspathScanner.

M

main(String[]) - Static method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Main class that list all the classes on the classpath and looks for duplicates.
main(String[]) - Static method in class au.com.forward.interfaceClassFinder.FindInterfaceClasses
Find the classes that implement the give fully qualified class and which have no-arg public constructors.

N

newline - Static variable in class au.com.forward.interfaceClassFinder.FindInterfaceClasses
 

P

processClass(String, String, File) - Method in interface au.com.forward.interfaceClassFinder.IClasspathProcessor
Process this class.
processClass(String, JarEntry, File) - Method in interface au.com.forward.interfaceClassFinder.IClasspathProcessor
Process this class from a jar file.
Note: The implementation must open the jarFile and find the jarEntry to get the class byte code.
processFileDir(File, String, String) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Process a file or directory.
processJarFile(File) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Scan the jar file for .class files to check

R

removeConsumer(T) - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Remove a consumer.

S

scanClassPath() - Method in class au.com.forward.interfaceClassFinder.ClasspathScanner
Scan the classpath and calls the registered consumers for each class found.

A C D F G I M N P R S
©2003-2009, Forward Computing and Control Pty. Ltd
ACN 003 669 994   NSW Australia
All Rights Reserved.