Linkit
Linkit copied to clipboard
Enhance Contextual Object Reference in order to cover more kind of references instead of matching an int identifier
Enhance ContextObjectReference in order to match more kind of ObjectReferences. Actual COR only match another COR with the same ID. Here is some examples of applications of the enhanced CORs:
val col = channelNode.config.getCOL()
//all network objects refered by a TrafficPresence and that is contained by any sync object are to be replaced by the alternative
col.bind(TrafficReferrence containedIn SyncObjectReference, alternative)
//all objects extending or implementing `MyType` are to be replaced by the alternative
col.bind(ClassReference[MyType], alternative)
//All objects that extends or implements `MyType` and verifies the check are to be replaced by the alternative
col.bind(ClassReference[MyType] thatVerifies(x => verify(x)), alternative)