Res.java
619 Bytes
package com.huaheng.common.constant;
import java.util.ResourceBundle;
public class Res {
    private static ResourceBundle bundle;
    protected Res() {
        bundle();
    }
    private static class StringBundleHolder {
        private static Res instance = new Res();
    }
    public static Res string() {
        return StringBundleHolder.instance;
    }
    public void bundle() {
//        String res = configService.getKey(QuantityConstant.MULTIPLE_DATA);
        bundle = ResourceBundle.getBundle("proRes");
    }
    public String getKey(String key) {
        return bundle.getString(key);
    }
}