add_instantiated_plugin_to_registry
- glotaran.plugin_system.base_registry.add_instantiated_plugin_to_registry(plugin_register_keys: str | list[str], plugin_class: type[_PluginInstantiableType], plugin_registry: MutableMapping[str, _PluginInstantiableType], plugin_set_func_name: str) None [source]
Add instances of plugin_class to the given registry.
- Parameters:
plugin_register_keys (str | list[str]) – Name/-s of the plugin under which it is registered.
plugin_class (type[_PluginInstantiableType]) – Pluginclass which should be instantiated with
plugin_register_keys
and added to the registry.plugin_registry (MutableMapping[str, _PluginInstantiableType]) – Registry the plugin should be added to.
plugin_set_func_name (str) – Name of the function used to pin a plugin.
See also
add_plugin_to_register