Incarnate
Extends:
Manage the lifecycle of application dependencies. Use dependencies as application entry-points and keep track of live changes.
Static Member Summary
| Static Public Members | ||
| public static |
DEFAULT_NAME: * |
|
| public static |
ERRORS: * |
|
| public static |
STANDARD_DEPENDENCY_NAMES: Object<string> The names of the dependencies supplied with a standard instance of |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(subMapDeclaration: SubMapDeclaration) |
|
Member Summary
| Public Members | ||
| public |
createGetter: * |
|
| public |
|
|
| public |
|
|
| public |
createSetter: * |
|
| public |
getDependency(path: Array | string): Incarnate | LifePod | HashMatrix: * Get a dependency by path. |
|
| public |
hashMatrix: {} |
|
| public |
strict: boolean If |
|
| public |
The map of dependency and subMap declarations. |
|
| Private Members | ||
| private |
|
|
Method Summary
| Public Methods | ||
| public |
convertDeclaration(name: *, declaration: {}): * |
|
| public |
createFromMap(map: {}, creator: *): * |
|
| public |
createIncarnate(name: *, subMapDeclaration: {}): * |
|
| public |
createLifePod(name: *, dependencyDeclaration: {}): * |
|
| public |
getDependenciesFromMap(dependencyMap: {}): * |
|
| public |
getResolvedPath(path: *): * The same as |
|
| public |
async getResolvedPathAsync(path: *, timeoutMS: *): * The same as |
|
Static Public Members
public static DEFAULT_NAME: * source
public static ERRORS: * source
public static STANDARD_DEPENDENCY_NAMES: Object<string> source
The names of the dependencies supplied with a standard instance of Incarnate.
Public Constructors
public constructor(subMapDeclaration: SubMapDeclaration) source
Params:
| Name | Type | Attribute | Description |
| subMapDeclaration | SubMapDeclaration | The |
Public Members
public createGetter: * source
public createInvalidator: * source
public createListener: * source
public createSetter: * source
public getDependency(path: Array | string): Incarnate | LifePod | HashMatrix: * source
Get a dependency by path.
public hashMatrix: {} source
public strict: boolean source
If true, LifePod factories will NOT be called until none of the dependencies are undefined.
public subMap: Object<DependencyDeclaration|SubMapDeclaration|Incarnate|LifePod|HashMatrix> source
The map of dependency and subMap declarations.
Private Members
private _parsedSubMap: * source
Public Methods
public convertDeclaration(name: *, declaration: {}): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| declaration | {} |
|
Return:
| * |
public createFromMap(map: {}, creator: *): * source
Params:
| Name | Type | Attribute | Description |
| map | {} |
|
|
| creator | * |
Return:
| * |
public createIncarnate(name: *, subMapDeclaration: {}): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| subMapDeclaration | {} |
|
Return:
| * |
public createLifePod(name: *, dependencyDeclaration: {}): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| dependencyDeclaration | {} |
|
Return:
| * |
public getDependenciesFromMap(dependencyMap: {}): * source
Params:
| Name | Type | Attribute | Description |
| dependencyMap | {} |
|
Return:
| * |
public getResolvedPath(path: *): * source
The same as getPath but triggers LifePod dependency resolution.
Params:
| Name | Type | Attribute | Description |
| path | * |
Return:
| * |
public async getResolvedPathAsync(path: *, timeoutMS: *): * source
The same as getPath but triggers LifePod dependency resolution and waits for a value.
Params:
| Name | Type | Attribute | Description |
| path | * | ||
| timeoutMS | * |
Return:
| * |
