Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PluginModule

Hierarchy

Index

Constructors

Methods

  • register(plugins: Record<string, Object>): void
  • Register a set of plugin and solve the dependancy

    Parameters

    • plugins: Record<string, Object>

      Class of each plugins with their respective names in keys

    Returns void

  • add(name: string, plugin: Object): boolean
  • Add one plugin with his name and his class

    Parameters

    • name: string

      The plugin name/key

    • plugin: Object

      Class of the plugin to instanciate

    Returns boolean

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

  • get(name: string): any
  • Get the in stance of a plugin

    Parameters

    • name: string

      The name of the plugin to get

    Returns any

    The instance of the plugin

  • _init(name: string): boolean
  • Instanciate the plugin (with custom plugin factory if it was registered)

    Parameters

    • name: string

      Plugin name/key to instanciate

    Returns boolean

    If the plugin was instanciate

Properties

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

Generated using TypeDoc