|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.scape_project.watch.plugin.PluginManager
public final class PluginManager
This is the watch plugin manager. It is responsible for loading
PluginInterfaces. Currently it loads all jar files in a pre defined
location and builds an internal registry of all PluginInterface
classes in there. As soon as the
getPlugin(String, String) method is called a new plugin
is created and its init method is called. Calling the shutdown method of the
plugin is the responsibility of the user of the PluginInterface.
| Method Summary | |
|---|---|
static PluginManager |
getDefaultPluginManager()
Gets the default PluginManager. |
PluginInterface |
getPlugin(String pluginID,
String version)
Returns an initialized instance of the PluginInterface with the
specified ID (classname) or null if the initializing process failed. |
List<PluginInfo> |
getPluginInfo()
Retrieves info for all plugins currently in the registry. |
List<PluginInfo> |
getPluginInfo(PluginType type)
Obtain plugin information about all plugins of the given type. |
List<PluginInfo> |
getPluginInfo(String name)
Checks the plugin registry for a plugin with the given name and retrieves all plugins that have the specified name or an empty list. |
void |
reScan()
Rescans the plugins folder on demand. |
void |
shutdown()
This method should be called to stop PluginManager and all
PluginInterfaces currently loaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PluginManager getDefaultPluginManager()
PluginManager.
PluginManager.
public PluginInterface getPlugin(String pluginID,
String version)
PluginInterface with the
specified ID (classname) or null if the initializing process failed.
pluginID - the ID (classname) of the PluginInterface.version - the version of the plugin, as there might be some ambiguities.
PluginInterface or null if the specified
classname if not a PluginInterface.public List<PluginInfo> getPluginInfo()
PluginInfospublic List<PluginInfo> getPluginInfo(PluginType type)
type - the type of the PluginInterface
PluginInfosPluginType}public List<PluginInfo> getPluginInfo(String name)
name - the name of the plugin you are looking for.
public void reScan()
public void shutdown()
PluginManager and all
PluginInterfaces currently loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||