Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Enhance Contextual Object Reference in order to cover more kind of references instead of matching an int identifier #12

Open
Override-6 opened this issue Dec 6, 2021 · 0 comments

Comments

@Override-6
Copy link
Owner

Override-6 commented Dec 6, 2021

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant