View Javadoc

1   /***
2    * Created on Nov 22, 2005, Copyright UC Regents
3    */
4   package org.telscenter.pas.service;
5   
6   import java.util.MissingResourceException;
7   import java.util.ResourceBundle;
8   
9   /***
10   * @author turadg
11   *
12   */
13  public class Messages {
14  	private static final String BUNDLE_NAME = "org.telscenter.pas.service.messages"; //$NON-NLS-1$
15  
16  	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
17  			.getBundle(BUNDLE_NAME);
18  
19  	private Messages() {
20  	}
21  
22  	public static String getString(String key) {
23  		// TODO Auto-generated method stub
24  		try {
25  			return RESOURCE_BUNDLE.getString(key);
26  		} catch (MissingResourceException e) {
27  			return '!' + key + '!';
28  		}
29  	}
30  }