Package org.yamcs
Interface Plugin
- All Known Implementing Classes:
AbstractPlugin,TsePlugin,WebPlugin
public interface Plugin
-
Method Summary
Modifier and TypeMethodDescriptiondefault SpecReturns the valid instance-level configuration options for this plugin.default SpecgetSpec()Returns the valid configuration options for this plugin.default voidonLoad(YConfiguration config) Callback executed when the plugin is loaded.
-
Method Details
-
getSpec
Returns the valid configuration options for this plugin.If
nullis returned, Yamcs will attempt to autodiscover plugin options in a resource file named after the reverse qualified name of this plugin with yaml extension. For example: for a plugincom.example.MyPlugin, Yamcs will search for a classpath resource/com/example/MyPlugin.yaml.- Returns:
- the argument specification. Or
nullif there are no options or Yamcs should autodiscover them.
-
getInstanceSpec
Returns the valid instance-level configuration options for this plugin.If
nullis returned, Yamcs will attempt to autodiscover plugin instance-level options in a resource file named after the reverse qualified name of this plugin with yaml extension. For example: for a plugincom.example.MyPlugin, Yamcs will search for a classpath resource/com/example/MyPlugin.yaml.- Returns:
- the argument specification. Or
nullif there are no options or Yamcs should autodiscover them.
-
onLoad
Callback executed when the plugin is loaded.This is executed after Yamcs has created all configured services, but before actually starting them.
- Throws:
PluginException
-