Class Launcher
- java.lang.Object
-
- com.inductiveautomation.ignition.client.launch.Launcher
-
public class Launcher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CACHE_DIR_KEY
Name for a system property that will hold the path to the .ignition folderstatic java.lang.String
VERSION_STRING
-
Constructor Summary
Constructors Constructor Description Launcher(LauncherParent parent, LaunchParent launchParent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getCacheDir()
static LaunchSpec
getJNLPLaunchSpec(LauncherParent parent)
Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)LaunchSpec
getLastSpec()
static boolean
isFirstLaunch()
static void
notifyLaunchFinished()
void
restartLauncher()
Restarts the Launcher with the last LaunchSpec that was set.void
startLauncher(LaunchSpec spec)
void
startLauncherInitial()
Uses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget paramsvoid
startLauncherInitial(java.lang.String username, java.lang.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.
-
-
-
Field Detail
-
VERSION_STRING
public static final java.lang.String VERSION_STRING
- See Also:
- Constant Field Values
-
CACHE_DIR_KEY
public static final java.lang.String CACHE_DIR_KEY
Name for a system property that will hold the path to the .ignition folder- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Launcher
public Launcher(LauncherParent parent, LaunchParent launchParent) throws LaunchException
- Throws:
LaunchException
-
-
Method Detail
-
getCacheDir
public java.io.File getCacheDir()
-
isFirstLaunch
public static boolean isFirstLaunch()
-
notifyLaunchFinished
public static void notifyLaunchFinished()
-
getJNLPLaunchSpec
public static LaunchSpec getJNLPLaunchSpec(LauncherParent parent) throws LaunchException
Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)- Throws:
LaunchException
-
restartLauncher
public void restartLauncher() throws LaunchException
Restarts the Launcher with the last LaunchSpec that was set.- Throws:
LaunchException
-
getLastSpec
public LaunchSpec getLastSpec()
-
startLauncherInitial
public void startLauncherInitial() throws LaunchException
Uses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget params- Throws:
LaunchException
-
startLauncherInitial
public void startLauncherInitial(java.lang.String username, java.lang.String password) throws LaunchException
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
public void startLauncher(LaunchSpec spec) throws LaunchException
- Throws:
LaunchException
-
-