Class ReactiveContextApplication
java.lang.Object
page.codeberg.rrangelo.contextfx.ContextApplication
page.codeberg.rrangelo.contextfx.reactive.ReactiveContextApplication
Entry point for bootstrapping both the standard and reactive ContextFX IoC containers.
ReactiveContextApplication extends ContextApplication to add a second
bootstrap phase dedicated to reactive components:
- The parent constructor runs the standard scan + injection pipeline for
@Component,@Model,@Service,@Controller, and@Viewannotated classes. - Then
ReactiveScanner.reactiveScan()discovers and registers reactive stereotype classes (@ReactiveModel,@ReactiveService, etc.) in theReactiveContainer. - Finally,
ReactiveInjector.reactiveInject()resolves allReactiveInjectable-annotated members, wrapping values in ReactFX primitives as needed.
- Author:
- Ramon Rangel Osorio <ramon.rangel@protonmail.com>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveContextApplication(Class<? extends javafx.application.Application> application) Bootstraps both the standard and reactive containers by scanning the package tree ofapplicationand running both injection pipelines. -
Method Summary
Modifier and TypeMethodDescriptionReturns the singletonReactiveContainerpopulated during construction.Methods inherited from class page.codeberg.rrangelo.contextfx.ContextApplication
getComtainer
-
Constructor Details
-
ReactiveContextApplication
Bootstraps both the standard and reactive containers by scanning the package tree ofapplicationand running both injection pipelines.- Parameters:
application- the JavaFXApplicationsubclass used as the scan root
-
-
Method Details
-
getReactiveContainer
Returns the singletonReactiveContainerpopulated during construction.- Returns:
- the application-wide reactive IoC container
-