| 接口 | 说明 |
|---|---|
| IConfigKey |
Config key interface.
|
| IConfigKeyHaveDefault |
Config key interface, that can provide default value
when there is not config in config file.
|
| 类 | 说明 |
|---|---|
| Configs |
Global configs.
|
| OneProperties |
Base config utils for on properties file.
|
Tools for easy add configs.
The simplest way to use configs:
First, create a properties file named "config.properties" in class path "/config".
Then define an enum implements IConfigKey, this enum contains config keys in properties file.
After all, you can use static methods in Configs, to get or modify configs in properties file.
Copyright © 2015. All rights reserved.