Class
PluginRegistry
Manages a collection of statically linked ShipItPlugin types and registers their action descriptors into an ActionRegistry.
actor PluginRegistryOverview
PluginRegistry is the bootstrap point for extending ShipItSwifty with custom actions. Built-in actions are registered first, followed by plugins in registration order.
Usage
let registry = ActionRegistry()
let plugins = PluginRegistry()
plugins.register(MyCustomPlugin.self)
try await plugins.registerAll(into: registry)Topics
Initializers
init()Creates an empty
PluginRegistry.
Instance Properties
var registeredPluginNames: [String]The names of all registered plugins, in registration order.
Instance Methods
func register(any ShipItPlugin.Type)Register a plugin type for later descriptor registration.
func registerAll(into: ActionRegistry) async throwsRegister all plugin-provided action descriptors into the given
ActionRegistry.
Default Implementations
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype_Concurrency.Actor