Interface that can be used to decorate the lookup result for a set of types.
Inheritance Hierarchy
ILookupDecorator
Type Details
- yFiles module
- core
See Also
Methods
Adds a lookup chain element to the chain of lookups for a given type.
Remarks
The lookup chain is context-specific. This method will not generally decorate the lookup of all instances of type
t
, but only those that stand in the context of this instance. It will throw an exception if it cannot decorate the given type.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- t - Constructor
- The type to decorate the lookup.
- lookup - IContextLookupChainLink
- The chain element to add to the lookup of the given type.
Throws
- Exception({ name: 'NotSupportedError' })
- If this instance cannot decorate the given type.
See Also
Removes a previously registered lookup chain element from the chain of lookups for a given type.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- t - Constructor
- The type to remove the decorator from.
- lookup - IContextLookupChainLink
- The chain element to remove from the lookup of the given type.