public class LauncherImpl extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LAUNCH_MODE_CLASS
When passed as launchMode to launchApplication, tells the method that
launchName is the name of the JavaFX application class to launch.
|
static String |
LAUNCH_MODE_JAR
When passed as launchMode to launchApplication, tells the method that
launchName is a path to a JavaFX application jar file to be launched.
|
Modifier and Type | Method and Description |
---|---|
static void |
launchApplication(Class<? extends Application> appClass,
Class<? extends Preloader> preloaderClass,
String[] args)
This method is called by the standalone launcher.
|
static void |
launchApplication(Class<? extends Application> appClass,
String[] args)
This method is called by the Application.launch method.
|
static void |
launchApplication(String launchName,
String launchMode,
String[] args)
This method is called by the Java launcher.
|
static void |
launchApplicationWithArgs(String mainClassName,
String preloaderClassName,
String[] args) |
static void |
notifyPreloader(Application app,
Preloader.PreloaderNotification info) |
public static final String LAUNCH_MODE_CLASS
public static final String LAUNCH_MODE_JAR
public static void launchApplication(Class<? extends Application> appClass, String[] args)
appClass
- application classargs
- command line argumentspublic static void launchApplication(Class<? extends Application> appClass, Class<? extends Preloader> preloaderClass, String[] args)
appClass
- application classpreloaderClass
- preloader class, may be nullargs
- command line argumentspublic static void launchApplication(String launchName, String launchMode, String[] args)
launchName
- Either the path to a jar file or the application class
name to launchlaunchMode
- The method of launching the application, either LM_JAR
or LM_CLASSargs
- Application arguments from the command linepublic static void launchApplicationWithArgs(String mainClassName, String preloaderClassName, String[] args)
public static void notifyPreloader(Application app, Preloader.PreloaderNotification info)
Copyright © 2020. All rights reserved.