[MGNLUI-4671] Forbid the UiContextParameterResolver to attempt IoC provider instance resolution Created: 05/Oct/18  Updated: 10/Oct/18  Resolved: 10/Oct/18

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0

Type: Task Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: 6.0 requisite
Sprint: Basel 157
Story Points: 2

 Description   

Currently the mentioned provider clashes sometimes with the providert of the mgnl context breaking the execution of some actions.

This happens due to imperfection of how the parameter resolvers pick the candidates for the c-tor injection (basically they do not distinguish between the two instances of javax.inject.Provider due to generic erasure at runtime). Ideally provider resolution should be delegated to GuiceParameterResolver, but UiContextParameterResolver can also look into the BeanStores that are used by Guice for scoping objects.

Sensible solution would be to forbid the UiContextParameterResolver to try to resolve an IoC provider instance (it is not meant for this type of objects anyway).


Generated at Mon Feb 12 09:18:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.