Package repast.simphony.plugin
Class ModelPluginLoader
java.lang.Object
repast.simphony.plugin.ModelPluginLoader
Loads / unloads model plugins.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionModelPluginLoader
(org.java.plugin.PluginManager manager) Creates a ModelPluginLoader that uses the specified PluginManager. -
Method Summary
Modifier and TypeMethodDescriptionorg.java.plugin.PluginManager
Gets the PluginManger.void
Publishes any plugins found in the added paths.void
Removes any currently registered plugins.void
Adds a plugin search path.
-
Constructor Details
-
ModelPluginLoader
public ModelPluginLoader(org.java.plugin.PluginManager manager) Creates a ModelPluginLoader that uses the specified PluginManager.- Parameters:
manager
-
-
-
Method Details
-
getManager
public org.java.plugin.PluginManager getManager()Gets the PluginManger.- Returns:
- the PluginManger.
-
setPath
Adds a plugin search path. -
currentPath
-
removePlugins
public void removePlugins()Removes any currently registered plugins. -
publishPlugins
public void publishPlugins() throws saf.core.runtime.PluginDefinitionExceptionPublishes any plugins found in the added paths.- Throws:
saf.core.runtime.PluginDefinitionException
- if any errors were encountered while publishing the plugins.
-