/autoconfig

Auto generated config class though Annotation Processing Tool.

Primary LanguageJavaApache License 2.0Apache-2.0

Auto Config Tool

将配置文件转化成一个配置类, App在runtime的时候使用配置类。


比如,有配置文件 config.properties

  CONFIG_1=Config1
CONFIG_2=Config2

程序编译以后会产生一个Config类


public static final Config {  
    public static final CONFIG_1 = "Config1";  
public static final CONFIG_2 = "Config2";
}