|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.pgm.CommandCatalog
public class CommandCatalog
List of all commands known by jgit's command line tools.
Commands are implementations of TextBuiltin
, with an optional
Command
class annotation to insert additional documentation or
override the default command name (which is guessed from the class name).
Commands may be registered by adding them to a services file in the same JAR
(or classes directory) as the command implementation. The service file name
is META-INF/services/org.eclipse.jgit.pgm.TextBuiltin
and it
contains one concrete implementation class name per line.
Command registration is identical to Java 6's services, however the catalog uses a lightweight wrapper to delay creating a command instance as much as possible. This avoids initializing the AWT or SWT GUI toolkits even if the command's constructor might require them.
Method Summary | |
---|---|
static CommandRef[] |
all()
|
static CommandRef[] |
common()
|
static CommandRef |
get(java.lang.String name)
Locate a single command by its user friendly name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CommandRef get(java.lang.String name)
name
- name of the command. Typically in dash-lower-case-form, which
was derived from the DashLowerCaseForm class name.
public static CommandRef[] all()
public static CommandRef[] common()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |