用来处理 properties 文件的Java类库 - Property Binder

fmms 12年前
     Property Binder 是一个 Java 类库,用来处理 properties 文件的,支持多值的key。可通过 Annotation 对 Properties 文件进行解析处理,例如下面代码:    <pre class="brush:java; toolbar: true; auto-links: false;">public interface ExamplePICA {     String unadorned();      @BoundProperty("unconverted.property")     String annotated();      int intProperty();      Long wrappedLongProperty();      char[] charArrayProperty();      List<Character> charListProperty();      @ValuesSeparatedBy(pattern = "\\s*,\\s*")     List<Ternary> listOfEnumsWithSeparator();      @DefaultsTo(value = "10")     BigDecimal bigDecimalPropertyWithDefault(); }</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326939573890" target="_blank">http://www.open-open.com/lib/view/home/1326939573890</a></p>