暂时不能用的 @Config
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user