Interface PluginBootstrap
public interface PluginBootstrap
Configures and creates a plugin.
-
Method Summary
Modifier and Type Method Description reactor.core.publisher.Mono<PropertyReader>
initPluginProperties()
Initializes the plugin properties.reactor.core.publisher.Mono<Plugin>
setup(Bot bot, PropertyReader pluginProperties)
Creates aPlugin
derived from the given bot and properties.
-
Method Details
-
setup
Creates aPlugin
derived from the given bot and properties.- Parameters:
bot
- the bot instancepluginProperties
- the plugin properties- Returns:
- the configured
Plugin
-
initPluginProperties
reactor.core.publisher.Mono<PropertyReader> initPluginProperties()Initializes the plugin properties.- Returns:
- the plugin properties
-