org.tanukisoftware.wrapper
Class WrapperSimpleApp
java.lang.Object
org.tanukisoftware.wrapper.WrapperSimpleApp
- Runnable, WrapperListener
public class WrapperSimpleApp
extends java.lang.Object
void | controlEvent(int event) - Called whenever the native wrapper code traps a system control signal
against the Java process.
|
static void | main(args[] ) - Used to Wrapper enable a standard Java application.
|
void | run() - Used to launch the application in a separate thread.
|
Integer | start(String[] args) - The start method is called when the WrapperManager is signalled by the
native wrapper code that it can start its application.
|
int | stop(int exitCode) - Called when the application is shutting down.
|
controlEvent
public void controlEvent(int event)
Called whenever the native wrapper code traps a system control signal
against the Java process. It is up to the callback to take any actions
necessary. Possible values are: WrapperManager.WRAPPER_CTRL_C_EVENT,
WRAPPER_CTRL_CLOSE_EVENT, WRAPPER_CTRL_LOGOFF_EVENT, or
WRAPPER_CTRL_SHUTDOWN_EVENT
- controlEvent in interface WrapperListener
main
public static void main(args[] )
Used to Wrapper enable a standard Java application. This main
expects the first argument to be the class name of the application
to launch. All remaining arguments will be wrapped into a new
argument list and passed to the main method of the specified
application.
run
public void run()
Used to launch the application in a separate thread.
start
public Integer start(String[] args)
The start method is called when the WrapperManager is signalled by the
native wrapper code that it can start its application. This
method call is expected to return, so a new thread should be launched
if necessary.
If there are any problems, then an Integer should be returned, set to
the desired exit code. If the application should continue,
return null.
- start in interface WrapperListener
stop
public int stop(int exitCode)
Called when the application is shutting down.
- stop in interface WrapperListener
Copyright 1999, 2003 TanukiSoftware.org. All Rights Reserved.