01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.admin.common;
06:
07: import java.util.MissingResourceException;
08: import java.util.ResourceBundle;
09:
10: public class NonPortableMessages {
11: private static final String BUNDLE_NAME = "com.tc.admin.common.nonportablemessages"; //$NON-NLS-1$
12:
13: private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
14: .getBundle(BUNDLE_NAME);
15:
16: private NonPortableMessages() {/**/
17: }
18:
19: public static String getString(String key) {
20: try {
21: return RESOURCE_BUNDLE.getString(key);
22: } catch (MissingResourceException e) {
23: return '!' + key + '!';
24: }
25: }
26: }
|