public abstract class ConfLoader<T extends Config>
extends java.lang.Object
Loading configurations from conf file or conf dir
| 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(java.io.File resourceRoot) |
public T load(java.io.File resourceRoot)
protected abstract T create(java.util.Map<java.lang.String,?> rawConf)
protected abstract java.lang.String confFileName()
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
Copyright © 2014–2017 ActFramework. All rights reserved.