|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginController
Interface to control the state of the plugin system
| Method Summary | |
|---|---|
void |
disablePlugin(java.lang.String key)
Disables the plugin with the given key. |
void |
disablePluginModule(java.lang.String completeKey)
Disable a plugin module by key. |
void |
disablePluginWithoutPersisting(java.lang.String key)
Disables the plugin with the given key without persisting the disabled state. |
void |
enablePlugin(java.lang.String key)
Enable a plugin by key. |
void |
enablePluginModule(java.lang.String completeKey)
Enable a plugin module by key. |
java.lang.String |
installPlugin(PluginArtifact pluginArtifact)
Deprecated. Since 2.3.0, use installPlugins(PluginArtifact[]) instead |
java.util.Set<java.lang.String> |
installPlugins(PluginArtifact... pluginArtifacts)
Installs multiple plugins and returns the list of plugin keys. |
int |
scanForNewPlugins()
Search all loaders and add any new plugins you find. |
void |
uninstall(Plugin plugin)
Uninstall the plugin, disabling it first. |
| Method Detail |
|---|
void enablePlugin(java.lang.String key)
key - The plugin key.void disablePlugin(java.lang.String key)
Calling this method will persist the disabled state so that the plugin will also be disabled on next startup. This would normally be used when a user manually disables a plugin.
If you extend DefaultPluginManager and override this method, you will also need to override disablePluginWithoutPersisting(String).
key - The plugin key.disablePluginWithoutPersisting(String)void disablePluginWithoutPersisting(java.lang.String key)
Calling this method will NOT persist the disabled state so that the framework will try to enable the plugin on next startup. This is used when a plugin has errors on startup.
If you extend DefaultPluginManager and override disablePlugin(String), you will also need to override this method.
key - The plugin key.disablePlugin(String)void enablePluginModule(java.lang.String completeKey)
completeKey - The "complete key" of the plugin module.void disablePluginModule(java.lang.String completeKey)
completeKey - The "complete key" of the plugin module.
java.lang.String installPlugin(PluginArtifact pluginArtifact)
throws PluginParseException
installPlugins(PluginArtifact[]) instead
pluginArtifact - The plugin artifact to install
PluginParseException - if the plugin is not a valid plugin
java.util.Set<java.lang.String> installPlugins(PluginArtifact... pluginArtifacts)
throws PluginParseException
pluginArtifacts - The list of plugin artifacts to install
PluginParseException - if any plugin is not a valid plugin
void uninstall(Plugin plugin)
throws PluginException
plugin - The plugin.
PluginException - if there was some problem uninstalling the plugin.
int scanForNewPlugins()
throws PluginParseException
PluginParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||