owner - 简化Java property文件使用的API

jopen 11年前

owner 是一个简单的API能够简化Java property文件的使用。这个API的想法来自GWT i18n。

@Sources({ "file:~/.myapp.config", "file:/etc/myapp.config", "classpath:foo/bar/baz.properties" })  public interface ServerConfig extends Config {        @Key("server.http.port")      int port();        @Key("server.host.name")      String hostname();        @Key("server.max.threads");      @DefaultValue("42")      int maxThreads();  }

项目主页:http://www.open-open.com/lib/view/home/1356572945401