controllers/jrequireaid

Initialize the default service locator which maps the default classes and dependencies If you wanted to make an app that used different module replacements, you would just not call this, OR call this and THEN replace/overwrite the selective paths you cared about

Source:
Author:

Methods

(inner) setDeferredLoading(val)

Source:

Just pass along the deferred loading flag set to jrequire. Turning off deferred loading can be useful to test circular dependency risks and ensure a predictable order of requires that avoids it

Parameters:
Name Type Description
val boolean

(inner) setupDefaultModulePaths()

Source:

Register the default module paths for the approom system. This should be called early before an application (or test) is set up, it basically registers the normal modules of the approom system. If you wanted to use the approom framework in a project and SWAP OUT certain modules, you could do that AFTER calling this function, replacing just the modules you care about.

Notes

You might call setDeferredLoading(false) first if you want to disable deferred loading of requirements, which can be useful to force a predictable order of requirements to bypass any potential cyclical dependencies