com.jpackages.execj
Class WindowsExe

java.lang.Object
  extended by com.jpackages.execj.WindowsExe

public final class WindowsExe
extends java.lang.Object

This class provides functionality specific to running as an exe.

Copyright (c) 2001-2007

Author:
JPackages.com

Constructor Summary
WindowsExe()
           
 
Method Summary
static boolean isWindowsService()
          Retrieve if this application is running as a Windows Service
static void restart()
          Restart this application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsExe

public WindowsExe()
Method Detail

restart

public static void restart()

Restart this application.

If called when not running as an exe, this method will cause an exit of the application.


isWindowsService

public static boolean isWindowsService()

Retrieve if this application is running as a Windows Service

Returns:
true if running as a Windows Service, false otherwise