Home Reference Source
import DependencyDeclaration from 'incarnate/src/DependencyDeclaration.jsx'
public class | source

DependencyDeclaration

Extends:

src/ConfigurableInstance.js~ConfigurableInstance → DependencyDeclaration

Member Summary

Public Members
public

dependencies: Object<string|*>

A map of named dependencies.

public

factory(dependencyValues: DependencyDeclaration): * | Promise: Function

The factory function used to create the value of the dependency.

public

getters: Object<string|Function>

A map of named getters.

public

invalidators: Object<string|Function>

A map of named invalidators.

public

listeners: Object<string|Function>

A map of named change handler receivers.

public

mergeDeps: boolean

Merge all dependency types into one Object when being passed to the factory.

public

noCache: boolean

Always call the factory when calling getPath, even if there is an existing value.

public

setters: Object<string|Function>

A map of named setters.

public

strict: boolean

If true, the factory is NOT called until none of the dependencies are undefined.

Public Members

public dependencies: Object<string|*> source

A map of named dependencies.

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 getters: Object<string|Function> source

A map of named getters.

public invalidators: Object<string|Function> source

A map of named invalidators.

public listeners: Object<string|Function> source

A map of named change handler receivers.

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 setters: Object<string|Function> source

A map of named setters.

public strict: boolean source

If true, the factory is NOT called until none of the dependencies are undefined.