| java.lang.Object ti.chimera.Main
All known Subclasses: ti.chimera.SplashScreen,
Main | public class Main (Code) | | This is where it all begins. The Main class instantiates the
registry, the script interpreter, and then evaluates bootstrap.os,
which is where everything else happens. The bootstrap.os essentially
defines the application.
author: Rob Clark version: 0.1 |
Inner Class :public interface Logger | |
Constructor Summary | |
public | Main(String[] args, String[] sargs) Class Constructor. |
Main | public Main(String[] args, String[] sargs) throws Error(Code) | | Class Constructor.
Parameters: args - the command-line arguments Parameters: sargs - script args |
addLogger | public void addLogger(Logger logger)(Code) | | Add a logger.
|
atExit | public void atExit(Runnable hook)(Code) | | Add some code to run at shutdown time. See
java.lang.Runtime.addShutdownHook for a description of what you can and can't do from a shutdown hook.
Unlike addShutdownHook , this method lets you add a
shutdown hook from the context of a running shutdown hook.
Parameters: hook - the hook to run at shutdown |
exit | public static void exit(int status)(Code) | | Cause the system to exit, running at-exit-runnables. Note that
while close runnables will still run if you exit the VM by calling
System.exit , doing so may cause the VM to hang on some plat-
forms, notably windows. (The cause appears to be bad interactions
between some close runnables and swing from the context of the
shutdown-hook thread.)
Parameters: status - the exit status |
fatalError | public void fatalError(String str) throws Error(Code) | | Called for fatal errors, for example during startup. Displays error
message and then throws
Error which should terminate the
thread.
Parameters: str - the error message throws: Error - |
getErr | public PrintWriter getErr()(Code) | | Get the stderr stream.
the stderr output stream used by the test-harness |
getIn | public BufferedReader getIn()(Code) | | Get the stdin stream.
the stdin input stream used by the test-harness |
getOut | public PrintWriter getOut()(Code) | | Get the stdout stream.
the stdout output stream used by the test-harness |
log | public void log(String msg)(Code) | | Log a message. This is called by various parts of the chimera
infrastructure, for example when plugins are loaded or view's are
created.
Parameters: msg - the informational message to log |
main | public static void main(String[] args) throws Throwable(Code) | | Where it all starts.
Parameters: args - the command-line arguments |
removeLogger | public void removeLogger(Logger logger)(Code) | | Remove a logger.
|
restore | public Object restore(String key)(Code) | | Retrieve some previously stored object.
Parameters: key - the key the previously stored object, or null if none See Also: Main.store See Also: |
setDebugLevel | public void setDebugLevel(int debugLevel)(Code) | | |
setErr | public void setErr(Writer err)(Code) | | Set the error output stream.
Parameters: err - the new error output writer |
setIn | public void setIn(Reader in)(Code) | | Set the input stream.
Parameters: in - the new input reader |
setOut | public void setOut(Writer out)(Code) | | Set the output stream.
Parameters: out - the new output writer |
store | public void store(String key, Object obj)(Code) | | Store some object in a persistant manner. The object must implement
the Serializable interface.
Parameters: key - the key Parameters: obj - the object to store See Also: Main.restore |
|
|