Code example for ResourceBundle

Methods: getString

0
 */ 
public class Config { 
 
    private static final ResourceBundle resourceBundle = ResourceBundle.getBundle("config");
 
    public static final String ACCESS_TOKEN_URI = resourceBundle.getString("accessTokenUri");
 
    public static final String API_URI = resourceBundle.getString("apiUri");
 
    public static final String EXPORT_URI = resourceBundle.getString("exportUri");
 
    public static final String PROXY_URI = StringUtils.isBlank(resourceBundle.getString("proxyUri")) ? null : resourceBundle.getString("proxyUri");
 
    public static final String CLIENT_ID = resourceBundle.getString("clientId");
 
    public static final String CLIENT_SECRET = resourceBundle.getString("clientSecret");
 
    public static final String SAMPLE_FILE = resourceBundle.getString("sampleFile");
} 
Contextual code suggestions in your IDE  Get Codota for Java