NOS.system
Interface NOSApplication


public interface NOSApplication


Method Summary
 void close()
          Called when the system wants to close this application.
 void main(NOSProcess proc, java.lang.String dir, java.lang.String app, java.lang.String[] args)
          Called to start an application
 

Method Detail

main

void main(NOSProcess proc,
          java.lang.String dir,
          java.lang.String app,
          java.lang.String[] args)
Called to start an application

Parameters:
proc - The process object for this application
dir - The directory in which this application was started
app - The JAR file that this application's main class is located in.
args - An array of program arguments.

close

void close()
Called when the system wants to close this application. The system will wait for 5 seconds before forcibly destroying an application.