mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-12-24 06:58:51 +00:00
feat: 添加新的构造 通过文件初始化注入配置
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
a72f617b3e
commit
9eca49d10f
@ -1,5 +1,6 @@
|
||||
package pw.yumc.YumCore.config;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.logging.Level;
|
||||
|
||||
@ -19,6 +20,11 @@ public abstract class InjectConfig extends AbstractInjectConfig {
|
||||
inject();
|
||||
}
|
||||
|
||||
public InjectConfig(final File file) {
|
||||
config = new FileConfig(file);
|
||||
inject();
|
||||
}
|
||||
|
||||
public InjectConfig(final String name) {
|
||||
config = new FileConfig(name);
|
||||
inject();
|
||||
|
Loading…
Reference in New Issue
Block a user