Class ReactiveContextApplication

java.lang.Object
page.codeberg.rrangelo.contextfx.ContextApplication
page.codeberg.rrangelo.contextfx.reactive.ReactiveContextApplication

public class ReactiveContextApplication extends ContextApplication
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:

  1. The parent constructor runs the standard scan + injection pipeline for @Component, @Model, @Service, @Controller, and @View annotated classes.
  2. Then ReactiveScanner.reactiveScan() discovers and registers reactive stereotype classes (@ReactiveModel, @ReactiveService, etc.) in the ReactiveContainer.
  3. Finally, ReactiveInjector.reactiveInject() resolves all ReactiveInjectable-annotated members, wrapping values in ReactFX primitives as needed.
Author:
Ramon Rangel Osorio <ramon.rangel@protonmail.com>
See Also:
  • Constructor Details

    • ReactiveContextApplication

      public ReactiveContextApplication(Class<? extends javafx.application.Application> application)
      Bootstraps both the standard and reactive containers by scanning the package tree of application and running both injection pipelines.
      Parameters:
      application - the JavaFX Application subclass used as the scan root
  • Method Details

    • getReactiveContainer

      public ReactiveContainer getReactiveContainer()
      Returns the singleton ReactiveContainer populated during construction.
      Returns:
      the application-wide reactive IoC container