The basic lookup interface that allows for retrieving implementations for different aspects of the current instance.
Inheritance Hierarchy
Remarks
The lookup idiom allows for dynamically providing, adding, changing, and removing implementation aspects of an instance that would not be possible to achieve using ordinary object-oriented methods.
See Also
Developer's Guide
Members
No filters for this type
Methods
Typically, this method will be called to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile-time constraints. An instance implementing this method is not required to return non-
null implementations for the types, nor does it have to return the same instance any time. Also, it depends on the type and context whether the instance returned stays up to date or needs to be re-obtained for further use.abstract
Parameters
- type: Constructor<T>
- the type for which an instance shall be returned
Return Value
- T
- an instance that is assignable to the type or
null
See Also
Developer's Guide
Implemented in
CanvasComponent.lookup, Table.lookup, ChildParseContext.lookup, GraphMLParseValueSerializerContext.lookup, GraphMLWriteValueSerializerContext.lookup, ChildWriteContext.lookup, Graph.lookup, GraphWrapperBase.lookup, InputModeContext.lookup, SimpleBend.lookup, SimpleLabel.lookup, IEdge.lookup, IEdge.lookup, INode.lookup, SimplePort.lookup, SimpleEdge.lookup, SimpleNode.lookupConstants
An ILookup instance that always returns null.
An
ILookup instance that always returns null.