Eliminate BindingReflections
(MDSAL-781)
|
|
| 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.
|