LifePod
Extends:
A container used to resolve a DependencyDeclaration.
Static Member Summary
| Static Public Members | ||
| public static |
DEFAULT_NAME: * |
|
| public static |
|
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(dependencyDeclaration: DependencyDeclaration) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public get |
dependencies: Object<HashMatrix>: * |
|
| public set |
dependencies(value: Object<HashMatrix>) |
|
| public |
factory(dependencyValues: DependencyDeclaration): * | Promise: Function The factory function used to create the value of the dependency. |
|
| public |
getters: Object<Function> A map of named getters. |
|
| public |
|
|
| public |
|
|
| public |
invalidators: Object<Function> A map of named invalidators. |
|
| public |
listeners: Object<Function> A map of named change handler receivers. |
|
| public |
mergeDeps: boolean Merge all dependency types into one |
|
| public |
noCache: boolean Always call the |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
resolving: boolean |
|
| public |
setters: Object<Function> A map of named setters. |
|
| public |
strict: boolean If |
|
| Private Members | ||
| private |
|
|
Method Summary
| Public Methods | ||
| public |
getPath(path: *): * |
|
| public |
async getPathAsync(path: *, timeoutMS: *): * The same as |
|
| public |
async getValueAsync(timeoutMS: *): * The same as |
|
| public |
async handleFactoryPromise(factoryPromise: *) |
|
| public |
resolve(): * |
|
| public |
resolveDependency(dependency: *): * |
|
| public |
resolveDependencyMap(dependencyMap: {}): * |
|
Public Constructors
public constructor(dependencyDeclaration: DependencyDeclaration) source
Params:
| Name | Type | Attribute | Description |
| dependencyDeclaration | DependencyDeclaration | The |
Public Members
public addDependencyChangeHandler: * source
public addDependencyErrorHandler: * source
public addDependencyMapChangeHandlers: * source
public addDependencyMapErrorHandlers: * source
public get dependencies: Object<HashMatrix>: * source
public set dependencies(value: Object<HashMatrix>) source
public factory(dependencyValues: DependencyDeclaration): * | Promise: Function source
The factory function used to create the value of the dependency.
Return:
| * | Promise | The value of the dependency. |
public handleDependencyChange: * source
public handleDependencyError: * source
public listeners: Object<Function> source
A map of named change handler receivers.
listen(handler):Function (unlisten)
public mergeDeps: boolean source
Merge all dependency types into one Object when being passed to the factory. Default: true
public noCache: boolean source
Always call the factory when calling getPath, even if there is an existing value.
public removeDependencyChangeHandler: * source
public removeDependencyErrorHandler: * source
public removeDependencyMapChangeHandlers: * source
public removeDependencyMapErrorHandlers: * source
public resolving: boolean source
public strict: boolean source
If true, the factory is NOT called until none of the dependencies are undefined.
Private Members
private _dependencies: * source
Public Methods
public async getPathAsync(path: *, timeoutMS: *): * source
The same as getPath but asynchronous and will wait for a value.
Params:
| Name | Type | Attribute | Description |
| path | * | ||
| timeoutMS | * |
Return:
| * |
public async getValueAsync(timeoutMS: *): * source
The same as getValue but asynchronous and will wait for a value.
Params:
| Name | Type | Attribute | Description |
| timeoutMS | * |
Return:
| * |
public async handleFactoryPromise(factoryPromise: *) source
Params:
| Name | Type | Attribute | Description |
| factoryPromise | * |
public resolveDependency(dependency: *): * source
Params:
| Name | Type | Attribute | Description |
| dependency | * |
Return:
| * |
public resolveDependencyMap(dependencyMap: {}): * source
Params:
| Name | Type | Attribute | Description |
| dependencyMap | {} |
|
Return:
| * |
