public interface Plugin
Modifier and Type | Method and Description |
---|---|
static String |
configStr(Map<String,String> config,
String nodeName)
Read a value from our config if present.
|
String |
getDescription() |
String |
getDisplayName()
Return a user-friendly name for this plugin that can be used in messages,
etc.
|
String |
getId()
Return a globally unique id for this plugin class.
|
void |
init(Map<String,String> config)
Initializes the plugin, called once after the initial loading of the class.
|
boolean |
needsConfig()
Does this plugin require configuration parameters?
If not, the plugin will always be initialized.
|
static String configStr(Map<String,String> config, String nodeName) throws PluginException
config
- root node of our config objectnodeName
- node to readPluginException
- on missing key or null valueString getId()
String getDisplayName()
String getDescription()
void init(Map<String,String> config) throws PluginException
config
- the config settings for this pluginPluginException
boolean needsConfig()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.