The plugin class will hold and load the required plugins, ready to be executed on demand.


Methods

execute (identifier, method)

The execute method will execute the found plugins with the supplied method. This is only done when there is a plugin folder defined, when there is none defined it will be skipped.

Parameters

Name Type Description
identifier String A dot-separate identifier.
method String A dot-separated method identifier.

Returned Value

Promise: A resolved promise when all the plugin methods are executed.


findPlugin (identifier)

This method will return all the plugins found in a folder.

Parameters

Name Type Description
identifier String A dot-separated identifier for plugin types.

Returned Value

Array/ False: False when there is an error, and an array with the found plugins.