@Configuration @EnableSpringConfigured @EnableAspectJAutoProxy @ComponentScan(basePackages="it.tidalwave") public class Main extends JavaFXSpringAnnotationApplication
The main class extends JavaFXSpringApplication and invokes a starting method on a controller that boots the application.
Author:
Fabrizio Giudici
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(@Nonnull String... args)
      Usually main() does nothing more than a typical main() of a JavaFX application. JavaFX and Spring are automatically booted with an implicit configuration:
      • The FXML resource for the main UI is loaded from the same package as this class, and the name's Application.fxml
      • A splash screen is created from a FXML resource in the same package as this class and name Splash.fxml, It is rendered on the screen while the system is initialised in background.
    • onStageCreated

      protected void onStageCreated(@Nonnull org.springframework.context.ApplicationContext applicationContext)
      This method retrieves a reference to the main controller and boots it.
      Overrides:
      onStageCreated in class AbstractJavaFXSpringApplication