public abstract class AbstractConfiguration extends Context implements CommonCliConstants, CmdConfig
Context.Builder
CONTROL_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, setProperty
public 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 CmdConfig
org.apache.commons.cli.ParseException
CmdConfig.loadConfig(Options, CommandLine)
Copyright © 2019. All rights reserved.