@flowscripter/dynamic-plugin-framework
    Preparing search index...

    Interface PluginManager

    Used by a host application to manage discovery of Extensions provided by Plugin implementations.

    interface PluginManager {
        getRegisteredExtensions(
            extensionPoint: string,
        ): Promise<readonly ExtensionInfo[]>;
        instantiate(
            extensionHandle: string,
            hostData?: Map<string, string>,
        ): Promise<unknown>;
        registerExtensions(extensionPoint: string): Promise<void>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    • Instantiate a specific Extension.

      Parameters

      • extensionHandle: string

        the opaque handle for the Extension provided by this Extension Manager instance via ExtensionInfo.extensionHandle.

      • OptionalhostData: Map<string, string>

        optional data to be passed in to the Extension when instantiating it.

      Returns Promise<unknown>

      an Extension instance implementing an Extension Point.

    • Scan for Plugins and register their Extensions which implement the specified Extension Point.

      Parameters

      • extensionPoint: string

        the Extension Point for which to register Extensions

      Returns Promise<void>