| Package | com.yworks.support |
| Interface | public interface IContextLookupChainLink extends IContextLookup |
| Implementors | AbstractContextLookupChainLink, DefaultItemLookup |
Implementations will perform the lookup in the IContextLookup#lookup
method and delegate to the next implementation in the chain if they cannot satisfy the request.
| Method | Defined by | ||
|---|---|---|---|
![]() |
lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type
for a given item.
| IContextLookup | |
|
setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that should be used during a call to
IContextLookup#Lookup/ | IContextLookupChainLink | ||
| setNext | () | method |
public function setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that should be used during a call to IContextLookup#Lookup/.
If the implementation cannot satisfy the query, it will use the provided context as a fallback. Note that implementations can also use the results returned by the next lookup and decorate it appropriately.
Parametersnext:IContextLookup — The context to use as a fallback.
|