Class PluginModule

Hierarchy

Constructors

Methods

  • Register a set of plugin and solve the dependancy

    Returns

    Parameters

    • plugins: Record<string, Object>

      Class of each plugins with their respective names in keys

    Returns void

  • Add one plugin with his name and his class

    Returns

    If the plugin was added and instanciate or false if it's already present

    Parameters

    • name: string

      The plugin name/key

    • plugin: Object

      Class of the plugin to instanciate

    Returns boolean

  • Get the in stance of a plugin

    Returns

    The instance of the plugin

    Parameters

    • name: string

      The name of the plugin to get

    Returns any

  • Instanciate the plugin (with custom plugin factory if it was registered)

    Returns

    If the plugin was instanciate

    Parameters

    • name: string

      Plugin name/key to instanciate

    Returns boolean

Properties

_postMessage: PostMessageChannel
_moduleLoader: ModuleLoaderInterface
_plugins: Map<any, any> = ...
_factory: Factory

Generated using TypeDoc