An interface for instances that can be used to chain lookup operations.
Implements
- I
Remarks
Implementations will perform the lookup in the contextLookup method and delegate to the next implementation in the chain if they cannot satisfy the request.
See Also
Developer's Guide
Members
Show:
Methods
Tries to create or retrieve an implementation of the given type for a given item.
Tries to create or retrieve an implementation of the given type for a given item.
abstract
Parameters
- item: any
- the item to look up a type for
- type: Constructor
- the type to look up
Return Value
- Object
- an implementation or
null
See Also
API
- lookup
Defined in
IContextLookup.contextLookupThis method is called by the framework to register the fallback lookup implementation that should be used during a call to contextLookup.
This method is called by the framework to register the fallback lookup implementation that should be used during a call to contextLookup.
If the implementation cannot satisfy the query, it will use the provided lookup context as a fallback. Note that implementations can also use the results returned by the next lookup and decorate it appropriately.
abstract
Parameters
- next: IContextLookup
- The context to use as a fallback.