Class Launcher
java.lang.Object
com.inductiveautomation.ignition.client.launch.Launcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LaunchSpecgetJNLPLaunchSpec(LauncherParent parent) Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)static booleanstatic voidvoidRestarts the Launcher with the last LaunchSpec that was set.voidstartLauncher(LaunchSpec spec) voidUses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget paramsvoidstartLauncherInitial(String username, String password) Special version of startLauncherInitial that takes credentials, in case the launcher has some sort of single-sign-on (SSO) system that lets it know credentials beforehand.static FileupdateDotIgnitionDir(String cacheDirName) Retrieves the local systems cache dir after following redirect.txt files and sets theCACHE_DIR_KEYsystem prop with the determined path.
-
Field Details
-
VERSION_STRING
- See Also:
-
CACHE_DIR_KEY
Name for a system property that will hold the path to the .ignition folder- See Also:
-
-
Constructor Details
-
Launcher
- Throws:
LaunchException
-
-
Method Details
-
updateDotIgnitionDir
Retrieves the local systems cache dir after following redirect.txt files and sets theCACHE_DIR_KEYsystem prop with the determined path.- Parameters:
cacheDirName- The name of the cache dir. usually just ".ignition" but this should be retrieved from thelauncherResource Bundle's keyCacheDir- Throws:
LaunchException
-
getCacheDir
-
isFirstLaunch
public static boolean isFirstLaunch() -
notifyLaunchFinished
public static void notifyLaunchFinished() -
getJNLPLaunchSpec
Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)- Throws:
LaunchException
-
restartLauncher
Restarts the Launcher with the last LaunchSpec that was set.- Throws:
LaunchException
-
getLastSpec
-
startLauncherInitial
Uses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget params- Throws:
LaunchException
-
startLauncherInitial
Special version of startLauncherInitial that takes credentials, in case the launcher has some sort of single-sign-on (SSO) system that lets it know credentials beforehand.- Throws:
LaunchException
-
startLauncher
- Throws:
LaunchException
-