public interface DicooglePlugin
These plugins can have an initialization process, and can be enabled or disabled by the system. Furthermore, every plugin must have a name, so that Dicoogle can address it and control it. No further assumptions are made here regarding functionality. Any other more specific functionality must be defined as a class inheriting from this one.
Modifier and Type | Method and Description |
---|---|
boolean |
disable()
Issues the plugin to become disabled.
|
boolean |
enable()
Issues the plugin to become enabled.
|
java.lang.String |
getName()
Obtains the unique name of plugin.
|
ConfigurationHolder |
getSettings()
Obtains access to the settings of the plugin.
|
boolean |
isEnabled()
Verifies if the plugin is enabled.
|
void |
setSettings(ConfigurationHolder settings)
Sets the settings of this plugin.
|
java.lang.String getName()
boolean enable()
boolean disable()
boolean isEnabled()
void setSettings(ConfigurationHolder settings)
settings
- the parameters that will be used by the pluginConfigurationHolder getSettings()