Class ReactiveControllerInjector
java.lang.Object
page.codeberg.rrangelo.contextfx.reactive.components.injectors.ReactiveControllerInjector
Performs reactive dependency injection for all
ReactiveController-annotated classes.
For each class in the scanner result set that carries @ReactiveController (directly,
on a superclass, or on an implemented interface), this injector retrieves the registered
instance from the ReactiveContainer and resolves all
ReactiveInjectable-annotated
injection points. ReactFX types (Var, Val, EventStream) are wrapped
automatically; generic type arguments are resolved via ParameterizedType.
Private members are made temporarily accessible via setAccessible(true) and
restored afterwards.
- Author:
- Ramon Rangel Osorio <ramon.rangel@protonmail.com>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidreactiveInject(ReactiveScanner scanner) Runs reactive injection for every@ReactiveController-annotated class found byscanner.
-
Method Details
-
reactiveInject
Runs reactive injection for every@ReactiveController-annotated class found byscanner.- Parameters:
scanner- the scanner whose class list is filtered for@ReactiveControllertypes
-