public abstract class ConfLoader<T extends Config> extends LogSupport
Loading configurations from conf file or conf dir
logger
Constructor and Description |
---|
ConfLoader() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
common()
Return the “common” configuration set name.
|
protected abstract java.lang.String |
confFileName() |
static java.lang.String |
confSetName()
Return the name of the current conf set
|
protected abstract T |
create(java.util.Map<java.lang.String,?> rawConf) |
T |
load() |
T |
load(java.io.File resourceRoot) |
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public T load()
public T load(java.io.File resourceRoot)
public static java.lang.String common()
Return the “common” configuration set name. By default it is “common”
public static java.lang.String confSetName()
Return the name of the current conf set
protected abstract T create(java.util.Map<java.lang.String,?> rawConf)
protected abstract java.lang.String confFileName()
Copyright © 2014–2017 ActFramework. All rights reserved.