public abstract class AbstractConfigureLoader extends Object implements ConfigureLoader, org.nutz.lang.util.LifeCycle, AppContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
allowCommandLineProperties
是否读取命令行参数
|
protected AppContext |
appContext
全局上下文
|
protected String[] |
args
命令行参数
|
protected org.nutz.ioc.impl.PropertiesProxy |
conf
配置对象
|
protected EnvHolder |
envHolder
环境加载器
|
protected ResourceLoader |
resourceLoader
资源加载器
|
| 构造器和说明 |
|---|
AbstractConfigureLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addCommandLineArg(org.nutz.ioc.impl.PropertiesProxy conf,
String key,
String value)
添加命令行参数
|
void |
depose() |
void |
fetch() |
org.nutz.ioc.impl.PropertiesProxy |
get()
获取最常用的PropertiesProxy实例
|
protected void |
parseCommandLineArgs(org.nutz.ioc.impl.PropertiesProxy conf,
String[] args)
处理命令行参数
|
void |
setAppContext(AppContext appContext)
设置AppContext
|
void |
setCommandLineProperties(boolean allowCommandLineProperties,
String... args)
设置命令行参数
|
protected org.nutz.ioc.impl.PropertiesProxy conf
protected AppContext appContext
protected EnvHolder envHolder
protected ResourceLoader resourceLoader
protected String[] args
protected boolean allowCommandLineProperties
public org.nutz.ioc.impl.PropertiesProxy get()
get 在接口中 ConfigureLoaderpublic void setCommandLineProperties(boolean allowCommandLineProperties,
String... args)
setCommandLineProperties 在接口中 ConfigureLoaderpublic void setAppContext(AppContext appContext)
setAppContext 在接口中 AppContextAwareprotected void parseCommandLineArgs(org.nutz.ioc.impl.PropertiesProxy conf,
String[] args)
protected void addCommandLineArg(org.nutz.ioc.impl.PropertiesProxy conf,
String key,
String value)
public void fetch()
throws Exception
fetch 在接口中 org.nutz.lang.util.LifeCycleExceptionCopyright © 2019. All rights reserved.