Raxol.Core.Runtime.Plugins.Registry (Raxol v2.0.1)

View Source

Plugin registry using GenServer for state management.

@deprecated "Use Raxol.Core.GlobalRegistry with :plugins type instead"

This module has been consolidated into the global registry system. For new code, use:

# Instead of Registry.register_plugin(id, metadata)
Raxol.Core.GlobalRegistry.register(:plugins, id, metadata)

# Instead of Registry.list_plugins()
Raxol.Core.GlobalRegistry.list(:plugins)

Summary

Functions

Returns a specification to start this module under a supervisor.

list_plugins() deprecated

Lists all registered plugins as {plugin_id, metadata} tuples.

Registers a plugin with its metadata.

Unregisters a plugin by its ID.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

list_plugins()

This function is deprecated. Use Raxol.Core.GlobalRegistry.list(:plugins) instead.
@spec list_plugins() :: [{atom(), map()}]

Lists all registered plugins as {plugin_id, metadata} tuples.

register_plugin(plugin_id, metadata)

This function is deprecated. Use Raxol.Core.GlobalRegistry.register(:plugins, plugin_id, metadata) instead.
@spec register_plugin(atom(), map()) :: :ok

Registers a plugin with its metadata.

start_link(init_opts \\ [])

unregister_plugin(plugin_id)

This function is deprecated. Use Raxol.Core.GlobalRegistry.unregister(:plugins, plugin_id) instead.
@spec unregister_plugin(atom()) :: :ok

Unregisters a plugin by its ID.