# 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.
- Source:
Example
const config = core.cfg();
const coreProxyInstance = core.getCoreProxy(config['app-engine'].allow);
Extends
Members
# (static) Base :Server.Modules.Core.Base
Optional Base Class
Type:
- Source:
# (static) globals :Server.Modules.Core.globals
Optional Globals Singleton
- Source:
Methods
# (static) cfg()
Optional Cfg() Method
- Source:
# (static) fetchBasePath()
Optional fetchBasePath() Method
- Source:
# (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 |
- Source:
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
- Source:
# (static) shutdown()
Optional Shutdown() Method
- Source: