Java Doc for CLIHandler.java in  » IDE-Netbeans » library » org » netbeans » 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 » IDE Netbeans » library » org.netbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.CLIHandler

All known Subclasses:   org.fakepkg.FakeHandler,  org.netbeans.core.CLIOptions2,  org.fakepkg.UserDirHandler,
CLIHandler
abstract public class CLIHandler extends Object (Code)
Command Line Interface and User Directory Locker support class. Subclasses may be registered into the system to handle special command-line options. To be registered, use META-INF/services/org.netbeans.CLIHandler in a JAR file in the startup or dynamic class path (e.g. lib/ext/ or lib/).
author:
   Jaroslav Tulach
since:
   org.netbeans.core/1 1.18
See Also:    "#32054"
See Also:    Specification

Inner Class :final static class Status
Inner Class :static interface Execute
Inner Class :final public static class Args extends Object

Field Summary
final public static  intWHEN_BOOT
     Used during bootstrap sequence.
final public static  intWHEN_EXTRA
     Extra set of inits.
final public static  intWHEN_INIT
     Used during later initialization or while NetBeans is up and running.

Constructor Summary
protected  CLIHandler(int when)
     Create a CLI handler and indicate its preferred timing.

Method Summary
abstract protected  intcli(Args args)
     Process some set of command-line arguments.
static  intfinishInitialization(boolean recreate)
     Run any CLIHandler.WHEN_INIT handlers that were passed to the original command line.
static  Statusinitialize(String[] args, InputStream is, OutputStream os, java.io.OutputStream err, MainImpl.BootClassLoader loader, boolean failOnUnknownOptions, boolean cleanLockFile, Runnable runWhenHome)
     Initializes the system by creating lock file.
static  Statusinitialize(Args args, Integer block, Collection handlers, boolean failOnUnknownOptions, boolean cleanLockFile, Runnable runWhenHome)
     Initializes the system by creating lock file.
protected static  intnotifyHandlers(Args args, Collection handlers, int when, boolean failOnUnknownOptions, boolean consume)
     Notification of available handlers.
protected static  voidshowHelp(PrintWriter w, Collection handlers, int when)
    
public static synchronized  voidstopServer()
     Stops the server.
abstract protected  voidusage(PrintWriter w)
     Print usage information for this handler.

Field Detail
WHEN_BOOT
final public static int WHEN_BOOT(Code)
Used during bootstrap sequence. Should only be used by core, not modules.



WHEN_EXTRA
final public static int WHEN_EXTRA(Code)
Extra set of inits.



WHEN_INIT
final public static int WHEN_INIT(Code)
Used during later initialization or while NetBeans is up and running.




Constructor Detail
CLIHandler
protected CLIHandler(int when)(Code)
Create a CLI handler and indicate its preferred timing.
Parameters:
  when - when to run the handler: CLIHandler.WHEN_BOOT or CLIHandler.WHEN_INIT




Method Detail
cli
abstract protected int cli(Args args)(Code)
Process some set of command-line arguments. Unrecognized or null arguments should be ignored. Recognized arguments should be nulled out.
Parameters:
  args - arguments error value or 0 if everything is all right



finishInitialization
static int finishInitialization(boolean recreate)(Code)
Run any CLIHandler.WHEN_INIT handlers that were passed to the original command line. Should be called when the system is up and ready. Cancels any existing actions, in case it is called twice. the result of executing the handlers



initialize
static Status initialize(String[] args, InputStream is, OutputStream os, java.io.OutputStream err, MainImpl.BootClassLoader loader, boolean failOnUnknownOptions, boolean cleanLockFile, Runnable runWhenHome)(Code)
Initializes the system by creating lock file.
Parameters:
  args - the command line arguments to recognize
Parameters:
  classloader - to find command CLIHandlers in
Parameters:
  failOnUnknownOptions - if true, fail (status 2) if some options are not recognized (also checks for -? and -help)
Parameters:
  cleanLockFile - removes lock file if it appears to be dead the file to be used as lock file or null parsing of args failed



initialize
static Status initialize(Args args, Integer block, Collection handlers, boolean failOnUnknownOptions, boolean cleanLockFile, Runnable runWhenHome)(Code)
Initializes the system by creating lock file.
Parameters:
  args - the command line arguments to recognize
Parameters:
  block - the state we want to block in
Parameters:
  handlers - all handlers to use
Parameters:
  failOnUnknownOptions - if true, fail (status 2) if some options are not recognized (also checks for -? and -help)
Parameters:
  cleanLockFile - removes lock file if it appears to be dead
Parameters:
  runWhenHome - runnable to be executed when netbeans.user property is set a status summary



notifyHandlers
protected static int notifyHandlers(Args args, Collection handlers, int when, boolean failOnUnknownOptions, boolean consume)(Code)
Notification of available handlers. non-zero if one of the handlers fails



showHelp
protected static void showHelp(PrintWriter w, Collection handlers, int when)(Code)



stopServer
public static synchronized void stopServer()(Code)
Stops the server.



usage
abstract protected void usage(PrintWriter w)(Code)
Print usage information for this handler.
Parameters:
  w - a writer to print to



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.