API - ObjectLoader

ObjectLoader object which handles all the loading of the requested objects.

Methods

This method will check if there is a custom loader sequence, if not return the default.

Returns Array: The complete sequence

The load method will check if the object has been cached. If this is not the case it will try to resolve the object. When an object has been loaded for the first time it is cached for reuse in a later request.

Parameters
Name Type Description
identifier String The identifier of the object to be loaded.
config Object This is the config object to send loaded object.

Returns Promise: This will hold the uninitialized object.

Parse the sequence identifier This will result in a usable identifier

Parameters
Name Type Description
string Sring The sequence string to parse
identifier Object

Returns ObjectIdentifier:

Receive method will triy to return the requested file.

Parameters
Name Type Description
identifier String The identifier of the object to load.

Returns Object | False: Result of the call when the file isn't found it will return false.

Load a specific object. By default it will be checking in the applications folder.

Parameters
Name Type Description
identifier String The identifier of the object which needs to be resolved.