Interface Plugin
public interface Plugin
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddispose()Dispose any resources created by the plugin.default JsonSettingsdefault arc.files.Fidefault PluginLoggerdefault PluginLoggerdefault PluginLoggerdefault Plugins.PluginMetagetMeta()static PluginLoggerThe plugin is automatically determined using the caller class.static PluginLoggergetPluginLogger(Class<?> topicClass) The plugin is automatically determined using the caller class.static PluginLoggergetPluginLogger(String topic) The plugin is automatically determined using the caller class.default voidinit()Called after all plugins have been created and commands have been registered.default voidregisterCommands(arc.util.CommandHandler handler) Register any commands.
-
Method Details
-
getPluginLogger
The plugin is automatically determined using the caller class.
Calls are expensive, please cache the result.- Returns:
- a new logger for this plugin.
-
getPluginLogger
The plugin is automatically determined using the caller class.
Calls are expensive, please cache the result.- Returns:
- a new logger for this plugin with the specified
topicClass.
-
getPluginLogger
The plugin is automatically determined using the caller class.
Calls are expensive, please cache the result.- Returns:
- a new logger for this plugin with the specified
topic.
-
getLogger
- Returns:
- a new logger for this plugin.
-
getLogger
- Returns:
- a new logger for this plugin with the specified
topicClass.
-
getLogger
- Returns:
- a new logger for this plugin with the specified
topic.
-
getConfigFolder
default arc.files.Fi getConfigFolder()- Returns:
- the folder where configuration files for this plugin should go.
-
getConfig
- Returns:
- a settings handle for this plugin, of file
'plugins/<plugin-name>/config.json'.
-
getMeta
- Returns:
- the meta data of this plugin .
-
init
default void init()Called after all plugins have been created and commands have been registered. -
registerCommands
default void registerCommands(arc.util.CommandHandler handler) Register any commands. -
dispose
default void dispose()Dispose any resources created by the plugin.
-