org.apache.avalon.phoenix.frontends
Class CLIMain

java.lang.Object
  |
  +--java.util.Observable
        |
        +--org.apache.avalon.phoenix.frontends.CLIMain
All Implemented Interfaces:
Runnable

public final class CLIMain
extends Observable
implements Runnable

The class to load the kernel and start it running.

Author:
Peter Donald, Leo Simons

Constructor Summary
CLIMain()
           
 
Method Summary
protected  void forceShutdown()
          Shut the embeddor down.
 int main(String[] args, Map data, boolean blocking)
          Main entry point.
 void run()
           
 void shutdown()
          Shut the embeddor down.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLIMain

public CLIMain()
Method Detail

main

public int main(String[] args,
                Map data,
                boolean blocking)
Main entry point.

Parameters:
args - the command line arguments

run

public void run()
Specified by:
run in interface Runnable

forceShutdown

protected void forceShutdown()
Shut the embeddor down. This method is designed to only be called from within the ShutdownHook. To shutdown Pheonix, call shutdown() below.


shutdown

public void shutdown()
Shut the embeddor down. Note must be public so that the Frontend can shut it down via reflection.



Copyright © 2001 Apache Jakarta Project. All Rights Reserved.