Java Doc for Main.java in  » Scripting » oscript-2.10.4 » ti » chimera » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » oscript 2.10.4 » ti.chimera 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 static class ChimeraThreadGroup extends java.lang.ThreadGroup
Inner Class :public interface Logger


Constructor Summary
public  Main(String[] args, String[] sargs)
     Class Constructor.

Method Summary
public  voidaddLogger(Logger logger)
     Add a logger.
public  voidatExit(Runnable hook)
     Add some code to run at shutdown time.
public  voiddebug(int level, String msg)
    
public  voiderror(String msg)
    
public  voiderror(String name, String msg)
    
public static  voidexit(int status)
     Cause the system to exit, running at-exit-runnables.
public  voidfatalError(String str)
     Called for fatal errors, for example during startup.
public  PrintWritergetErr()
     Get the stderr stream.
public synchronized  StringgetHistory()
    
public  BufferedReadergetIn()
     Get the stdin stream.
public  PrintWritergetOut()
     Get the stdout stream.
public  RegistrygetRegistry()
     Get the Registry .
final public  ti.chimera.service.WindowManagergetWindowManager()
     Get the WindowManager .
public  voidlog(String msg)
     Log a message.
public static  voidmain(String[] args)
     Where it all starts.
public  voidmessage(String msg)
    
public  voidremoveLogger(Logger logger)
     Remove a logger.
public  Objectrestore(String key)
     Retrieve some previously stored object.
public  voidsetDebugLevel(int debugLevel)
    
public  voidsetErr(Writer err)
     Set the error output stream.
public  voidsetIn(Reader in)
     Set the input stream.
public  voidsetOut(Writer out)
     Set the output stream.
public  voidstore(String key, Object obj)
     Store some object in a persistant manner.
public  voidwarning(String msg)
    
public  voidwarning(String name, String msg)
    


Constructor Detail
Main
public Main(String[] args, String[] sargs) throws Error(Code)
Class Constructor.
Parameters:
  args - the command-line arguments
Parameters:
  sargs - script args




Method Detail
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



debug
public void debug(int level, String msg)(Code)



error
public void error(String msg)(Code)



error
public void error(String name, String msg)(Code)



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



getHistory
public synchronized String getHistory()(Code)



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



getRegistry
public Registry getRegistry()(Code)
Get the Registry . the registry



getWindowManager
final public ti.chimera.service.WindowManager getWindowManager()(Code)
Get the WindowManager . the window manager



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



message
public void message(String msg)(Code)



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



warning
public void warning(String msg)(Code)



warning
public void warning(String name, String msg)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.