Class Launcher
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.launch.Launcher
 
- 
 public class Launcher extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCACHE_DIR_KEYName for a system property that will hold the path to the .ignition folderstatic java.lang.StringVERSION_STRING
 - 
Constructor SummaryConstructors Constructor Description Launcher(LauncherParent parent, LaunchParent launchParent)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetCacheDir()static LaunchSpecgetJNLPLaunchSpec(LauncherParent parent)Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)LaunchSpecgetLastSpec()static booleanisFirstLaunch()static voidnotifyLaunchFinished()voidrestartLauncher()Restarts the Launcher with the last LaunchSpec that was set.voidstartLauncher(LaunchSpec spec)voidstartLauncherInitial()Uses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget paramsvoidstartLauncherInitial(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.static java.io.FileupdateDotIgnitionDir(java.lang.String cacheDirName)Retrieves the local systems cache dir after following redirect.txt files and sets theCACHE_DIR_KEYsystem prop with the determined path.
 
- 
- 
- 
Field Detail- 
VERSION_STRINGpublic static final java.lang.String VERSION_STRING - See Also:
- Constant Field Values
 
 - 
CACHE_DIR_KEYpublic 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- 
Launcherpublic Launcher(LauncherParent parent, LaunchParent launchParent) throws LaunchException - Throws:
- LaunchException
 
 
- 
 - 
Method Detail- 
updateDotIgnitionDirpublic static java.io.File updateDotIgnitionDir(java.lang.String cacheDirName) throws LaunchExceptionRetrieves 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 the- launcherResource Bundle's key- CacheDir
- Throws:
- LaunchException
 
 - 
getCacheDirpublic java.io.File getCacheDir() 
 - 
isFirstLaunchpublic static boolean isFirstLaunch() 
 - 
notifyLaunchFinishedpublic static void notifyLaunchFinished() 
 - 
getJNLPLaunchSpecpublic static LaunchSpec getJNLPLaunchSpec(LauncherParent parent) throws LaunchException Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)- Throws:
- LaunchException
 
 - 
restartLauncherpublic void restartLauncher() throws LaunchExceptionRestarts the Launcher with the last LaunchSpec that was set.- Throws:
- LaunchException
 
 - 
getLastSpecpublic LaunchSpec getLastSpec() 
 - 
startLauncherInitialpublic void startLauncherInitial() throws LaunchExceptionUses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget params- Throws:
- LaunchException
 
 - 
startLauncherInitialpublic void startLauncherInitial(java.lang.String username, java.lang.String password) throws LaunchExceptionSpecial 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
 
 - 
startLauncherpublic void startLauncher(LaunchSpec spec) throws LaunchException - Throws:
- LaunchException
 
 
- 
 
-