CoreProxy

Server.Modules.Core. CoreProxy

# new CoreProxy()

This is the Core Proxy Class. An instance of this class can be retrieved by calling core.getCoreProxy() - passing in a Configuration Object describing what subset of the full Core will be present within the CoreProxy, and the app Object for the app that the CoreProxy will be provisioned to.

Example
const config = core.cfg();
const coreProxyInstance = core.getCoreProxy(config['app-engine'].allow);

Extends

Members

# (static) Base :Server.Modules.Core.Base

Optional Base Class

# (static) globals :Server.Modules.Core.globals

Optional Globals Singleton

Methods

# (static) cfg()

Optional Cfg() Method

# (static) fetchBasePath()

Optional fetchBasePath() Method

# (static) module(name, myInterfaceopt) → {Server.Modules.Core.Module|object}

This method returns a Proxy Instance that provides configurable access to a module's methods.

Parameters:
Name Type Attributes Default Description
name string

Module Name

myInterface string <optional>
interface

Set to 'interface' if requesting Interface, Else leave out

Returns:

moduleProxyInstance - A proxy instance providing restricted access to the module

Type
Server.Modules.Core.Module | object
Example
const config = core.cfg();
const coreProxyInstance = core.getCoreProxy(config['app-engine'].allow);
const loggerModuleProxy = coreProxyInstance.module('logger');

# (static) pkg()

Optional Pkg() Method

# (static) shutdown()

Optional Shutdown() Method