01: package com.pentaho.messages;
02:
03: import java.util.MissingResourceException;
04: import java.util.ResourceBundle;
05:
06: public class LdapUserDetailsServiceMessages {
07: private static final String BUNDLE_NAME = "com.pentaho.locale.ldapuserdetailsservice_messages"; //$NON-NLS-1$
08:
09: private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
10: .getBundle(BUNDLE_NAME);
11:
12: private LdapUserDetailsServiceMessages() {
13: }
14:
15: public static String getString(String key) {
16: try {
17: return RESOURCE_BUNDLE.getString(key);
18: } catch (MissingResourceException e) {
19: return '!' + key + '!';
20: }
21: }
22: }
|