Class SimulationLauncher


  • public class SimulationLauncher
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SUN_JAVA_COMMAND
      Sun property pointing the main class and its arguments.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Process restartApplication​(java.io.File workingDirectory, java.lang.String... additionalArguments)
      Restart the current Java application
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUN_JAVA_COMMAND

        public static final java.lang.String SUN_JAVA_COMMAND
        Sun property pointing the main class and its arguments. Might not be defined on non Hotspot VM implementations.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SimulationLauncher

        public SimulationLauncher()
    • Method Detail

      • restartApplication

        public static java.lang.Process restartApplication​(java.io.File workingDirectory,
                                                           java.lang.String... additionalArguments)
                                                    throws java.io.IOException
        Restart the current Java application
        Parameters:
        additionalArguments - some custom code to be run before restarting
        Returns:
        Throws:
        java.io.IOException