1 19 20 package com.maverick.ssl; 21 22 import java.util.MissingResourceException ; 23 import java.util.ResourceBundle ; 24 25 29 public class Messages { 30 private static final String BUNDLE_NAME = "com.maverick.ssl.ApplicationResources"; 32 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 33 34 private Messages() { 35 } 36 37 public static String getString(String key) { 38 try { 39 return RESOURCE_BUNDLE.getString(key); 40 } catch (MissingResourceException e) { 41 return '!' + key + '!'; 42 } 43 } 44 } 45 | Popular Tags |