Refactor SubcommandHandler to use CommandCatalog instead of reflection
commit10b13b688da6e38547c6a6dc5331788f4ec81673
authorShawn O. Pearce <spearce@spearce.org>
Mon, 21 Jul 2008 05:32:57 +0000 (21 01:32 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 31 Jul 2008 02:47:05 +0000 (30 19:47 -0700)
tree6a2fae8de52652eb38b160b2a4c27b444cc8d92e
parentd1711f36fb683c367ef02c10c8eb98fc71308ab4
Refactor SubcommandHandler to use CommandCatalog instead of reflection

Now that all commands are known to the CommandCatalog we do not need
to perform direct reflection inside of the SubcommandHandler.  Instead
we can reuse the lookup table already known to the CommandCatalog.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/TextBuiltin.java
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/opt/SubcommandHandler.java