|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.keymanager.cli.SubCommand
public abstract class SubCommand
Sub-command for a certain CLI operation.
The key-store-command-line-interface uses a syntax similar to the svn command and the logic of the
command 'java -jar org.cumulus4j.keymanager.cli-VERSION.jar SUBCOMMAND -arg1 val1 -arg2 val2 ...'
is thus actually implemented by a class extending this class and registering
for a certain 'SUBCOMMAND'.
Every subclass of this class can declare its arguments using annotations like Option
.
Constructor Summary | |
---|---|
SubCommand()
|
Method Summary | |
---|---|
abstract String |
getSubCommandDescription()
Get the description for this sub-command. |
abstract String |
getSubCommandName()
Get the name of the sub-command, i.e. |
void |
prepare()
|
protected String |
promptPassword(String fmt,
Object... args)
|
abstract void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubCommand()
Method Detail |
---|
public abstract String getSubCommandName()
public abstract String getSubCommandDescription()
public void prepare() throws Exception
Exception
public abstract void run() throws Exception
Exception
protected String promptPassword(String fmt, Object... args)
|
Cumulus4j API (1.1.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |