|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader jaige.util.PluginLoader
public class PluginLoader
Title:
Description:
Copyright: Copyright (c) 2004
Company:
Method Summary | ||
---|---|---|
static
|
getPluginClasses(java.lang.Class<T> baseClass)
Searches for classes that extend the base class, and returns them. |
|
static
|
getPlugins(java.lang.Class<T> baseClass)
Searches for classes that extend the base class, and attempts to construct an instance of each class found. |
|
static void |
loadPlugins()
|
|
static boolean |
setPluginDirctory(java.lang.String directory)
|
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean setPluginDirctory(java.lang.String directory)
public static <T> java.lang.Class<T>[] getPluginClasses(java.lang.Class<T> baseClass)
baseClass
- Class The parent class or interface of the classes we wish to find.
public static <T> java.util.List<T> getPlugins(java.lang.Class<T> baseClass)
baseClass
- Class The parent class or interface of the classes we wish to find.
public static void loadPlugins()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |