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