Gets the communication manager of this container.
Gets the identity object of this container.
The identity can be initialized in the common configuration option
agentIdentity
.
Gets the runtime object of this container.
Gets the registered controller of the given controller name. Returns
undefined
if a controller with the given name is not registered in
Components
.
the name of the controller specified as
Components
key for the controller
Creates a new array with the results of calling the provided callback function once for each registered controller name/controllerType/controller instance triple.
function that returns an element of the new array
Dynamically registers and resolves the given controller type with the specified controller options. The request is silently ignored if the container has already been shut down.
the name to be registered with the controller
the class type of the controller
the controller's configuration options (optional)
the resolved controller instance or undefined
if a controller
could not be resolved
The exit point for a Coaty applicaton. Releases all registered container components and its associated system resources. This container should no longer be used afterwards.
Creates and bootstraps a Coaty container by registering and resolving the given components and configuration options.
the components to set up within this container
the configuration options for the components
a function to transform the given configuration (optional)
a Container for the given components
Asynchronously creates and bootstraps a Coaty container by registering and resolving the given components and configuration options. Use this method if configuration should be retrieved asnychronously (e.g. via HTTP) by one of the predefined runtime configuration providers (see runtime-angular, runtime-node). The promise returned will be rejected if the configuration could not be retrieved or has a falsy value.
the components to set up within this container
a promise for the configuration options
a function to transform the retrieved configuration (optional)
a promise on a Container for the given components
Generated using TypeDoc
An IoC container that uses constructor dependency injection to create container components and to resolve dependencies. This container defines the entry and exit points for any Coaty application providing lifecycle management for its components.