1 package pt.waveweb.util; 2 3 import java.util.MissingResourceException ; 4 import java.util.ResourceBundle ; 5 6 import pt.waveweb.core.PropertiesManager; 7 8 public class SQLStrings 9 { 10 private static final String DATABASE_FILE = PropertiesManager.getString("SQL_File"); 11 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(DATABASE_FILE); 12 13 public static String getString(String key) 14 { 15 try 16 { 17 return RESOURCE_BUNDLE.getString(key); 18 } 19 catch (MissingResourceException e) 20 { 21 return '!' + key + '!'; 22 } 23 } 24 } 25 | Popular Tags |