Class MicronautFxLauncher

java.lang.Object
app.supernaut.fx.FxLauncherAbstract
app.supernaut.fx.micronaut.MicronautFxLauncher
All Implemented Interfaces:
FxLauncher

A launcher that uses Micronaut@ framework to instantiate and Dependency Inject the foreground and background applications.
  • Constructor Details

    • MicronautFxLauncher

      Default constructor that initializes the background app on its own thread.
    • MicronautFxLauncher

      public MicronautFxLauncher(boolean initializeBackgroundAppOnNewThread)
      Parameters:
      initializeBackgroundAppOnNewThread - If true, initializes appFactorySupplier and BackgroundApp on new thread, if false start them on calling thread (typically the main thread)
    • MicronautFxLauncher

      public MicronautFxLauncher(boolean initializeBackgroundAppOnNewThread, boolean useApplicationContext)
      Parameters:
      initializeBackgroundAppOnNewThread - If true, initializes appFactorySupplier and BackgroundApp on new thread, if false start them on calling thread (typically the main thread)
      useApplicationContext - If true creates and uses an ApplicationContext, if false creates and uses a BeanContext
  • Method Details

    • name

      public String name()
      Implementations must implement this method to return a unique name
      Returns:
      A unique name for this DI-capable FxLauncher implementation