Expand description
Factory types and associated utilities.
In CLAP, factories are singleton objects exposed by the plugin library’s entry point, which can in turn expose various functionalities.
Each factory type has a standard, unique identifier, which allows hosts to query plugins for known factory type implementations.
In Clack, factory implementations are represented by the Factory trait.
The main factory type (and, at the time of this writing, the only stable standard one), is the
PluginFactory, which enables hosts to list all the plugin
implementations present in an entry.
See the Entry trait documentation for an example on how to create a
custom entry and plugin factory.
Modules§
- plugin
- The plugin factory type, which is the entry point for hosts to discover and instantiate plugins.
Structs§
- Factory
Wrapper - A wrapper around a
clackfactory of a givenFtype, as well as itsRawCLAP representation. - RawFactory
Pointer - A low-level utility used to implement custom
Factorypointer types.
Enums§
- Factory
Wrapper Error - Errors raised by a
FactoryWrapper.
Traits§
- Factory
- A CLAP factory pointer type.
- Factory
Implementation - A types that provides a specific factory implementation.