public abstract class AbstractConfiguration extends Context implements CommonCliConstants, CmdConfig
Context.BuilderCONTROL_OPTIONS, DEFINE_OPTION, DEFINE_OPTION_DESC, HELP_OPTION, HELP_OPTION_DESC, HELP_OPTION_LONG| Constructor and Description |
|---|
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getDefaultValueMap()
子类提供命令行参数的默认值
|
void |
loadConfig(org.apache.commons.cli.Options options,
org.apache.commons.cli.CommandLine cmd) |
builder, getContext, getProperty, hasProperty, setProperties, setPropertypublic AbstractConfiguration()
protected abstract java.util.Map<java.lang.String,java.lang.Object> getDefaultValueMap()
public void loadConfig(org.apache.commons.cli.Options options, org.apache.commons.cli.CommandLine cmd) throws org.apache.commons.cli.ParseException
loadConfig in interface CmdConfigorg.apache.commons.cli.ParseExceptionCmdConfig.loadConfig(Options, CommandLine)Copyright © 2019. All rights reserved.