Eliminate BindingReflections (MDSAL-781)

[MDSAL-803] Rehost BindingReflections.getModuleInfo() to BindingRuntimeHelpers Created: 13/Dec/22  Updated: 24/Jul/23  Resolved: 21/Jun/23

Status: Resolved
Project: mdsal
Component/s: Binding runtime, Binding Spec
Affects Version/s: None
Fix Version/s: 12.0.0

Type: Sub-task Priority: High
Reporter: Robert Varga Assignee: Oleksandr Panasiuk
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

BindingReflections.getModuleInfo() is used to load classes at runtime, to locate YangModuleInfo. As such, this functionality is used only in tests and in binding.runtime.spi.

Move these methods to binding.runtime.spi, as that is the appropriate place for them.

Also evaluate the overall usefulness – we should be able to locate module infos via ServiceLoader, without directly loading classes anyway.

 


Generated at Wed Feb 07 20:11:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.