暂时不能用的 @Config

This commit is contained in:
Izzel_Aliz
2018-04-05 13:56:24 +08:00
parent 96269db54d
commit 4bb5df7cbb
9 changed files with 218 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
package com.ilummc.tlib;
import com.ilummc.tlib.annotations.Config;
import com.ilummc.tlib.annotations.Dependency;
import com.ilummc.tlib.annotations.Logger;
import com.ilummc.tlib.inject.DependencyInjector;
@@ -20,9 +21,15 @@ public class TLib {
@Logger("§3[§6TLib§3|{1}§3] §f{2}")
private TLogger tLogger;
private TLibConfig config;
private TLib() {
}
public TLibConfig getConfig() {
return config;
}
public TLogger getLogger() {
return tLogger;
}
@@ -48,4 +55,14 @@ public class TLib {
}
}
@Config(name = "tlib.yml")
public class TLibConfig {
private int downloadPoolSize = 4;
public int getDownloadPoolSize() {
return downloadPoolSize;
}
}
}