1 package org.oxerr.okcoin.rest;
2
3 import java.util.MissingResourceException;
4 import java.util.ResourceBundle;
5
6
7
8
9 public class Messages {
10 private static final String BUNDLE_NAME = "org.oxerr.okcoin.rest.messages";
11
12 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
13 .getBundle(BUNDLE_NAME);
14
15 private Messages() {
16 }
17
18 public static String getString(String key) {
19 try {
20 return RESOURCE_BUNDLE.getString(key);
21 } catch (MissingResourceException e) {
22 return '!' + key + '!';
23 }
24 }
25 }