PluginManager

server. PluginManager

Manager the plugins and their relations. Acts as a factory to ensure plugins are instanciated only once.

Constructor

new PluginManager()

Source:

Methods

get(name)

Source:

Retrieve an instance of a registered plugin according to its given name. Except if you know what you are doing, prefer Experience.require('my-plugin')

Parameters:
Name Type Description
name String

Name of the registered plugin

register(name, factory, options, deps)

Source:
See:

Register a plugin (server-side) into soundworks.

A plugin must be registered both client-side and server-side

Example
```js
server.pluginManager.register('user-defined-name', pluginFactory);
```
Parameters:
Name Type Default Description
name String

Name of the plugin

factory function null

Factory function that return the plugin class

options Object

Options to configure the plugin

deps Array

List of plugins' names the plugin depends on