C F G J O P R S

C

CLASS_SUFFIX - Static variable in class se.hirt.plugin.PluginLoader
The suffix for classes.
createPluginLoader() - Static method in class se.hirt.plugin.PluginLoaderFactory
 
createPluginLoader(ClassLoader) - Static method in class se.hirt.plugin.PluginLoaderFactory
 
createPlugins(Class<T>) - Method in class se.hirt.plugin.PluginLoader
Convenience function using the default constructor, to create instances of either: 1.

F

FileScanner - Class in se.hirt.plugin
Recursively scans the files of a directory.
FileScanner() - Constructor for class se.hirt.plugin.FileScanner
 
FileScanner.FileApplier - Interface in se.hirt.plugin
Callback interface to be used with the scanner.

G

getClassesFromDir(ClassLoader, File) - Static method in class se.hirt.plugin.FileScanner
Uses a FileApplier that goes through the entire directory looking for classes.
getClassesFromJar(ClassLoader, JarFile) - Static method in class se.hirt.plugin.JarScanner
Attempts to load all the class files found in the specified jar, using the specified loader.
getClassNameFromEntry(JarEntry) - Static method in class se.hirt.plugin.JarScanner
Returns the class name from a JarEntry, or null if it isn't a class.
getImplementorsOf(Class<?>) - Method in class se.hirt.plugin.PluginLoader
 
getSubclassesOf(Class<?>) - Method in class se.hirt.plugin.PluginLoader
 
getURLs() - Method in class se.hirt.plugin.PluginLoader
 

J

JAR_SUFFIX - Static variable in class se.hirt.plugin.PluginLoader
The suffix for JAR files.
JarScanner - Class in se.hirt.plugin
Class for scanning Jar's.
JarScanner() - Constructor for class se.hirt.plugin.JarScanner
 
JarScanner.EntryApplier - Interface in se.hirt.plugin
Callback interface to be used with the scanner.

O

onEntry(JarFile, JarEntry) - Method in interface se.hirt.plugin.JarScanner.EntryApplier
Called for every entry in the jar.
onFile(File, File) - Method in interface se.hirt.plugin.FileScanner.FileApplier
Called for every file and directory encountered.

P

PluginLoader - Class in se.hirt.plugin
Utility class for finding and instantiating implementors and/or subclasses of a class in a set of specified directories and/or JAR files.
PluginLoaderFactory - Class in se.hirt.plugin
This is the factory from which you retrieve a plugin loader.

R

rescan() - Method in class se.hirt.plugin.PluginLoader
Rescans all files and directories and resets all caches.

S

scanDirectory(File, FileScanner.FileApplier) - Static method in class se.hirt.plugin.FileScanner
Scans the files of the direcory, applying the applier to each file and directory encountered.
scanJar(JarFile, JarScanner.EntryApplier) - Static method in class se.hirt.plugin.JarScanner
Sifts through a jar file, applying the entry applier on every entry discovered.
se.hirt.plugin - package se.hirt.plugin
 
setURLs(URL[]) - Method in class se.hirt.plugin.PluginLoader
Sets the URL's to search for classes.

C F G J O P R S

Copyright © 2005 Marcus Hirt