The main application container.
The Unit classes registered with the app.
The fully-qualified path to the base directory of the app.
Resolved universal path to the base directory of the app.
Collection of factories registered with this container.
If true, the "Starting Extollo..." messages will always be logged.
Collection of singleton instances produced by this container.
Instances of the units registered with this app.
Returns a UniversalPath to the
app/ directory in the application.
Get an instance of the RunLevelErrorHandler.
Return a UniversalPath to the root of the application.
Initialize the environment variable library and read from the
Stop all units in the application, one at a time, in reverse order.
Get a value from the loaded environment variables. If no value could be found, the default value will be returned.
Wrap a base Error instance into an ErrorWithContext.
Get a collection of dependency keys required by the given target, if it is registered with this container.
Get the already-produced value for the given key, if one exists.
Returns true if the container has an already-produced value for the given key.
Returns true if the container has a factory for the given key.
Returns true if the given unit class is registered with the application.
Create an instance of the given target. The target can either be a DependencyKey registered with this container (in which case, the singleton value will be returned), or an instantiable class.
If the instantiable class has the Injectable decorator, its injectable parameters will be automatically injected into the instance.
Given a factory and manually-provided parameters, resolve the dependencies for the factory and produce its value.
Purge all factories and instances of the given key from this container.
Register the given function as a factory within the container.
unique name to identify the factory in the container
factory to produce a value
Register a value as a singleton in the container. It will not be instantiated, but can be injected by its unique name.
unique name to identify the singleton in the container
Register a static class to the container along with its already-instantiated instance that will be used to resolve the class.
Remove all stored instances of the given key from this container.
Find the factory for the given key, if one is registered with this container.
Resolve the dependency key. If a singleton value for that key already exists in this container, return that value. Otherwise, use the factory an given parameters to produce and return the value.
Run the application by starting all units in order, then stopping them in reverse order.
Set up the bare essentials to get the application up and running.
Initialize the logger and load the logging level from the environment.
Start a single unit, setting its status.
Stop a single unit, setting its status.
Start all units in the application, one at a time, in order.
Get the global application instance.