The base path directory where the canonical definitions reside.
The singular, programmatic name of one of these canonical items.
Object mapping canonical names to loaded file references.
Object mapping canonical namespaces to resolver functions.
The current status of the unit.
The file suffix of files in the base path that should be loaded.
The global application instance.
Get the plural name of the canonical items provided by this unit.
Get a Universal path to the base directory where this unit loads its canonical files from.
Return an array of all loaded canonical names.
Get the global Application.
Given the path to a file in the canonical items directory, create a CanonicalDefinition record from that file.
Get the global Container.
This method is called to stop the unit when the application is shutting down. Here, you should do any teardown required to stop the package cleanly.
IN PARTICULAR take care to free blocking resources that could prevent the process from exiting without a kill.
Get a canonical item by key.
Get the method with the given name from this class, bound to this class.
function
Called for each canonical item loaded from a file. This function should do any setup necessary and return the item that should be associated with the canonical name.
Call the make()
method on the global container.
Return an array of all loaded canonical namespaces.
Register a namespace resolver with the canonical unit.
Namespaces are canonical names that start with a particular key, beginning with the @
character,
which resolve their resources using a resolver function.
Resolve a canonical reference from its string form to a CanonicalReference.
CanonicalReference
extollo (v. latin) - to lift up, to elevate
Extollo is a free & libre application framework in TypeScript.
Abstract unit type that loads items recursively from a directory structure, assigning them normalized names ("canonical names"), and providing a way to fetch the resources by name.
The Config service is a Canonical derivative that loads files ending with
.config.js
from theapp/config
directory.If, for example, there is a config file
app/config/auth/Forms.config.js
(in the generated code), it can be loaded by the canonical nameauth:Forms
.