Package | com.yworks.support |
Interface | public interface IMutableLookup extends ILookup |
Implementors | AbstractModelItem, DefaultGraph |
This interface allows changing the implementations that are returned by the lookup mechanism for given types.
Method | Defined By | ||
---|---|---|---|
lookup(type:Class):Object
Returns an instance that implements the given type or null. | ILookup | ||
registerLookup(type:Class, instance:Object):void
Register an implementation for the given type that should be returned
when lookup is called with this given type. | IMutableLookup |
registerLookup | () | method |
public function registerLookup(type:Class, instance:Object):void
Register an implementation for the given type that should be returned
when lookup
is called with this given type.
Parameters
type:Class — A type to register an implementation for
| |
instance:Object — An implementation of type
|