ReferencesDecorator class

Chainable decorator for IReferences that allows to inject additional capabilities such as automatic component creation, automatic registration and opening.

See [https://rawgit.com/pip-services-node/pip-services3-commons-node/master/doc/api/interfaces/refer.ireferences.html IReferences] (in the PipServices "Commons" package)

Implementers

Constructors

ReferencesDecorator(IReferences nextReferences IReferences topReferences)
Creates a new instance of the decorator. [...]

Properties

nextReferences ↔ IReferences
The next references or decorator in the chain.
read / write
topReferences ↔ IReferences
The decorator at the top of the chain.
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

find<T>(dynamic locator, bool required) → List<T>
Gets all component references that match specified locator. [...]
getAll() → List
Gets all component references registered in this reference map. [...]
getAllLocators() → List
Gets locators for all registered component references in this reference map. [...]
getOneOptional<T>(dynamic locator) → T
Gets an optional component reference that matches specified locator. [...]
getOneRequired<T>(dynamic locator) → T
Gets a required component reference that matches specified locator. [...]
getOptional<T>(dynamic locator) → List<T>
Gets all component references that match specified locator. [...]
getRequired<T>(dynamic locator) → List<T>
Gets all component references that match specified locator. At least one component reference must be present. If it doesn't the method throws an error. [...]
put(dynamic locator dynamic component) → dynamic
Puts a new reference into this reference map. [...]
remove(dynamic locator) → dynamic
Removes a previously added reference that matches specified locator. If many references match the locator, it removes only the first one. When all references shall be removed, use [removeAll] method instead. [...]
removeAll(dynamic locator) → List
Removes all component references that match the specified locator. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited