Raxol.Core.Runtime.Plugins.StateManager.Behaviour behaviour (Raxol v0.3.0)
View SourceDefines the behaviour for plugin state management.
This behaviour is responsible for:
- Managing plugin state transitions
- Updating plugin state maps
- Retrieving plugin state information
- Handling plugin state lifecycle
Summary
Callbacks
Gets a plugin's configuration.
Gets a plugin's metadata.
Gets a plugin's module.
Gets a plugin's state.
Removes a plugin from the state maps.
Updates a plugin's state.
Updates the plugin state maps with a new plugin.
Callbacks
Gets a plugin's configuration.
Gets a plugin's metadata.
Gets a plugin's module.
Gets a plugin's state.
Removes a plugin from the state maps.
@callback update_plugin_state( plugin_id :: String.t(), new_state :: map(), state_maps :: map() ) :: map()
Updates a plugin's state.
@callback update_state_maps( plugin_id :: String.t(), plugin_module :: module(), plugin_metadata :: map(), plugin_state :: map(), config :: map(), state_maps :: map() ) :: map()
Updates the plugin state maps with a new plugin.