Packagecom.yworks.support
Interfacepublic interface IMutableLookup extends ILookup
Implementors AbstractModelItem, DefaultGraph

Mutable version of the ILookup interface.

This interface allows changing the implementations that are returned by the lookup mechanism for given types.



Public Methods
 MethodDefined By
 Inherited
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
Method Detail
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