public class BaseAction extends java.lang.Object implements Action
Modifier and Type | Class and Description |
---|---|
static interface |
BaseAction.BaseActionArgs
Arguments for the BaseAction.
|
Modifier and Type | Field and Description |
---|---|
protected IPropertyLookup |
frameworkProperties |
protected CLIToolLogger |
main |
protected java.lang.String |
project |
Constructor and Description |
---|
BaseAction(CLIToolLogger main,
IPropertyLookup frameworkProperties,
BaseAction.BaseActionArgs args,
CentralDispatcher dispatcher) |
Modifier and Type | Method and Description |
---|---|
static BaseAction.BaseActionArgs |
createArgs(java.lang.String project,
boolean verbose)
Create BaseActionArgs instance
|
void |
exec()
/**
Execute the action.
|
CentralDispatcher |
getCentralDispatcher() |
protected java.lang.String |
getSingleProjectName() |
boolean |
isVerbose() |
protected static BaseAction.BaseActionArgs |
parseBaseActionArgs(org.apache.commons.cli.CommandLine cli) |
void |
setCentralDispatcher(CentralDispatcher centralDispatcher) |
void |
setVerbose(boolean verbose) |
protected final CLIToolLogger main
protected java.lang.String project
protected final IPropertyLookup frameworkProperties
public BaseAction(CLIToolLogger main, IPropertyLookup frameworkProperties, BaseAction.BaseActionArgs args, CentralDispatcher dispatcher)
public boolean isVerbose()
public void setVerbose(boolean verbose)
protected static BaseAction.BaseActionArgs parseBaseActionArgs(org.apache.commons.cli.CommandLine cli)
public static BaseAction.BaseActionArgs createArgs(java.lang.String project, boolean verbose)
project
- project nameverbose
- true if verbose output is onpublic CentralDispatcher getCentralDispatcher()
public void setCentralDispatcher(CentralDispatcher centralDispatcher)
protected java.lang.String getSingleProjectName() throws CentralDispatcherException
CentralDispatcherException