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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Implement of AppFactory using either a MicronautBeanContext
orApplicationContext
Nested classes/interfaces inherited from class app.supernaut.fx.FxLauncherAbstract
FxLauncherAbstract.AppFactory, FxLauncherAbstract.DefaultAppFactory
-
Field Summary
Fields inherited from class app.supernaut.fx.FxLauncherAbstract
futureAppDelegate, futureBackgroundApp
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that initializes the background app on its own thread.MicronautFxLauncher
(boolean initializeBackgroundAppOnNewThread) MicronautFxLauncher
(boolean initializeBackgroundAppOnNewThread, boolean useApplicationContext) -
Method Summary
Methods inherited from class app.supernaut.fx.FxLauncherAbstract
createAppDelegate, getAppDelegate, getBackgroundApp, launch, launch, launchAsync
-
Constructor Details
-
MicronautFxLauncher
public MicronautFxLauncher()Default constructor that initializes the background app on its own thread. -
MicronautFxLauncher
- Parameters:
initializeBackgroundAppOnNewThread
- If true, initializesappFactorySupplier
andBackgroundApp
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, initializesappFactorySupplier
andBackgroundApp
on new thread, if false start them on calling thread (typically the main thread)useApplicationContext
- Iftrue
creates and uses anApplicationContext
, iffalse
creates and uses aBeanContext
-
-
Method Details
-
name
Implementations must implement this method to return a unique name- Returns:
- A unique name for this DI-capable
FxLauncher
implementation
-