Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ABFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const uuid = require("uuid");

var ABFactoryCore = require("./core/ABFactoryCore");
const SecretManager = require("./platform/ABSecretManager");
const LocalPlugins = require("./platform/plugins/included");

function stringifyErrors(param) {
if (param instanceof Error) {
Expand Down Expand Up @@ -519,6 +520,18 @@ class ABFactory extends ABFactoryCore {
return this.req.notify(domain, error, this._notifyInfo(info));
}

//
// Plugins
//
/**
* pluginLocalLoad()
* load the local plugins for the current ABFactory.
* @returns {Promise}
*/
pluginLocalLoad() {
return LocalPlugins.load(this);
}

//
// Utilities
//
Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated from 6792fd to 389fa7
9 changes: 9 additions & 0 deletions platform/plugins/included/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const AllPlugins = [];

module.exports = {
load: (AB) => {
AllPlugins.forEach((plugin) => {
AB.pluginRegister(plugin);
});
},
};
Loading