Skip to main content

Module factory

Module factory 

Source
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§

FactoryWrapper
A wrapper around a clack factory of a given F type, as well as its Raw CLAP representation.
RawFactoryPointer
A low-level utility used to implement custom Factory pointer types.

Enums§

FactoryWrapperError
Errors raised by a FactoryWrapper.

Traits§

Factory
A CLAP factory pointer type.
FactoryImplementation
A types that provides a specific factory implementation.