Builder

ApplicationPrototype. Builder

new Builder()

Source:

Extends

Classes

Promise

Methods

(static) consoleOptions(optionsopt) → {module:ApplicationPrototype.Builder.ConsoleOptions}

Source:
Parameters:
Name Type Attributes Description
options module:ApplicationPrototype.Builder.ConsoleOptions <optional>
Returns:
Type
module:ApplicationPrototype.Builder.ConsoleOptions

(static) debugEnabled(statusopt) → {boolean}

Source:
Parameters:
Name Type Attributes Description
status boolean <optional>
Returns:
Type
boolean

(static) isBrowser() → {boolean}

Source:
Returns:
Type
boolean

(static) isNode() → {boolean}

Source:
Returns:
Type
boolean

(static) moduleRegister(path, modules) → {module:ApplicationPrototype.Builder.ModuleStore}

Source:
Parameters:
Name Type Description
path string

path that will be used as Application.modulePath()

modules Array.<string>

list of modules names that should be registered

Returns:
Type
module:ApplicationPrototype.Builder.ModuleStore

(static) require(events, callbackopt) → {PromiseLike.<any>}

Source:
Parameters:
Name Type Attributes Description
events string | Array.<string>

List of Events Names or Array of Events Mapping like [ "uriLoad :: uri-load", "ePrototype :: extensions/prototype" ]

callback function <optional>

Callback that will receive Module

Returns:
Type
PromiseLike.<any>

(static) runModulesInFiles(statusopt) → {boolean}

Source:
Parameters:
Name Type Attributes Description
status boolean <optional>
Returns:
Type
boolean

Type Definitions

ConsoleOptions

Source:
Properties:
Name Type Attributes Description
file boolean <optional>

enable/disable showing filename in console log. default value is true

contextName boolean <optional>

enable/disable showing context Execution info in console log. default value is true

timestamp boolean <optional>

enable/disable showing current timestamp in console log. default value is true

logType boolean <optional>

enable/disable showing log type in console log. default value is `true

Type:
  • object

ModuleMeta

Source:
Properties:
Name Type Description
store module:ApplicationPrototype.Builder.ModuleStore

same as module.cache()

$requestQuery PromiseLike.<string>

XMLHttpRequest used for obtaining Module's Content

module_path string

module's path

path string

module's internal path used as identifier of module

name string

module's name

__dirname string

module's dirname

Type:
  • object

moduleResolve(module, pathopt) → {module:ApplicationPrototype.Builder.ModuleMeta}

Source:
Parameters:
Name Type Attributes Description
module string

module name

path string <optional>

module path

Returns:
Type
module:ApplicationPrototype.Builder.ModuleMeta

ModuleStore

Source:

modules store where are indexed modules

Type:
  • object