| Package | com.yworks.support |
| Class | public class AbstractContextLookupChainLink |
| Implements | IContextLookupChainLink |
IContextLookupChainLink.
Subclasses need to override the lookupForItem method in order to be of any use.
See also
| Method | Defined by | ||
|---|---|---|---|
|
lookupForItem(item:Object, type:Class):Object
Returns the result of a query to the next lookup chain element.
| AbstractContextLookupChainLink | ||
|
setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that will be used during a call to
super.lookupForItem. | AbstractContextLookupChainLink | ||
| lookupForItem | () | method |
public function lookupForItem(item:Object, type:Class):ObjectReturns the result of a query to the next lookup chain element.
This implementation returns the result of a query to the next lookup in the chain.
A typical override of this method could look like this:
override public function lookupForItem( item:Object, type:Class ):Object {
if( type == AType && item is MyType ) {
var result:Atype = new MyImplementationOfAType();
return result;
}
return super.lookupForItem( item, type );
}
item:Object — the item to lookup a type for
|
|
type:Class — the type to look up
|
Object — An implementation or null
|
| setNext | () | method |
public function setNext(next:IContextLookup):void
This method is called by the framework to register the fallback lookup implementation
that will be used during a call to super.lookupForItem.
next:IContextLookup |