public class LoadedWrapperListener extends java.lang.Object implements WrapperListener, java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
void |
controlEvent(int event)
Called whenever the native wrapper code traps a system control signal
against the Java process.
|
static void |
main(java.lang.String[] args) |
void |
run()
Runner thread which actually launches the application.
|
java.lang.Integer |
start(java.lang.String[] args)
The start method is called when the WrapperManager is signaled by the
native wrapper code that it can start its application.
|
int |
stop(int exitCode)
Called when the application is shutting down.
|
public java.lang.Integer start(java.lang.String[] args)
start
in interface WrapperListener
args
- List of arguments used to initialize the application.public int stop(int exitCode)
stop
in interface WrapperListener
exitCode
- The suggested exit code that will be returned to the OS
when the JVM exits.public void controlEvent(int event)
controlEvent
in interface WrapperListener
event
- The system control signal.public void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] args)