java.lang.Object
be.yildizgames.common.application.helper.restarter.LauncherRestarter
All Implemented Interfaces:
Restarter

public class LauncherRestarter extends Object implements Restarter
Handles restarting the application process by using a native launcher.
Author:
Grégory Van den Borre
  • Constructor Details

    • LauncherRestarter

      public LauncherRestarter(String windowExecutable, String linuxExecutable)
      Constructs a Restarter with the executables.
      Parameters:
      windowExecutable - Name of the Windows executable file.
      linuxExecutable - Name of the Linux executable file.
  • Method Details

    • restart

      public final void restart()
      Description copied from interface: Restarter
      Restarts the application process immediately.
      Specified by:
      restart in interface Restarter
    • restart

      public final void restart(long msBeforeRestart)
      Description copied from interface: Restarter
      Restarts the application process after a delay.
      Specified by:
      restart in interface Restarter
      Parameters:
      msBeforeRestart - Delay before restarting in ms.