|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.CLIHandler
public abstract class CLIHandler
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 ServiceProvider
in a JAR file in the startup or dynamic class path (e.g. lib/ext/
or lib/).
| Nested Class Summary | |
|---|---|
static class |
CLIHandler.Args
Class that represents available arguments to the CLI handlers. |
| Field Summary | |
|---|---|
static int |
WHEN_BOOT
Used during bootstrap sequence. |
static int |
WHEN_EXTRA
Extra set of inits. |
static int |
WHEN_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 | |
|---|---|
protected abstract int |
cli(CLIHandler.Args args)
Process some set of command-line arguments. |
protected static int |
notifyHandlers(CLIHandler.Args args,
Collection<? extends CLIHandler> handlers,
int when,
boolean failOnUnknownOptions,
boolean consume)
Notification of available handlers. |
protected static void |
showHelp(PrintWriter w,
Collection<? extends CLIHandler> handlers,
int when)
|
static void |
stopServer()
Stops the server. |
protected abstract void |
usage(PrintWriter w)
Print usage information for this handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WHEN_BOOT
public static final int WHEN_INIT
public static final int WHEN_EXTRA
| Constructor Detail |
|---|
protected CLIHandler(int when)
when - when to run the handler: WHEN_BOOT or WHEN_INIT| Method Detail |
|---|
protected abstract int cli(CLIHandler.Args args)
args - arguments
protected static void showHelp(PrintWriter w,
Collection<? extends CLIHandler> handlers,
int when)
protected abstract void usage(PrintWriter w)
w - a writer to print to
protected static int notifyHandlers(CLIHandler.Args args,
Collection<? extends CLIHandler> handlers,
int when,
boolean failOnUnknownOptions,
boolean consume)
public static void stopServer()
|
org.netbeans.bootstrap/1 2.52 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||