org.selman.java3d.book.launcher
Class Application

java.lang.Object
  |
  +--org.selman.java3d.book.launcher.Application

public class Application
extends java.lang.Object

Quick-and-dirty encapsulation of an example application. Also handles the mechanics of Runtime.exec'ing the example to run out- of-process.


Nested Class Summary
 class Application.NativeExecute
           
 
Field Summary
static int RUN_NEW_VM
           
static int RUN_WITHIN_VM
           
 
Constructor Summary
Application(java.lang.String className)
           
 
Method Summary
protected  java.lang.String createExecCommand(java.lang.String javacPath, java.lang.String className)
           
protected  java.lang.String createPathFromClassName(java.lang.String className)
           
 java.lang.String getName()
           
 void run(int mode)
           
static void setJavacPath(java.lang.String newJavacPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_NEW_VM

public static final int RUN_NEW_VM
See Also:
Constant Field Values

RUN_WITHIN_VM

public static final int RUN_WITHIN_VM
See Also:
Constant Field Values
Constructor Detail

Application

public Application(java.lang.String className)
Method Detail

run

public void run(int mode)
         throws java.lang.Exception
java.lang.Exception

getName

public java.lang.String getName()

createExecCommand

protected java.lang.String createExecCommand(java.lang.String javacPath,
                                             java.lang.String className)

createPathFromClassName

protected java.lang.String createPathFromClassName(java.lang.String className)

setJavacPath

public static void setJavacPath(java.lang.String newJavacPath)