1 23 24 25 package com.sun.jdo.api.persistence.enhancer.util; 26 27 import java.util.ResourceBundle ; 28 29 import com.sun.jdo.spi.persistence.utility.I18NHelper; 30 31 32 35 public class Support 37 extends Assertion { 38 39 static public Timer timer = new Timer(); 41 42 45 static private ResourceBundle MESSAGES; 46 47 48 51 static 52 { 53 try 54 { 55 MESSAGES = I18NHelper.loadBundle( 56 "com.sun.jdo.api.persistence.enhancer.Bundle", Support.class.getClassLoader()); 58 } 59 catch (java.util.MissingResourceException ex) 60 { 61 ex.printStackTrace (); 62 } 63 } 64 65 68 static protected final String getI18N(String key) { 69 return I18NHelper.getMessage(MESSAGES, key); 70 } 71 72 75 static protected final String getI18N(String key, 76 String arg) { 77 return I18NHelper.getMessage(MESSAGES, key, arg); 78 } 79 80 83 static protected final String getI18N(String key, 84 String arg1, 85 String arg2) { 86 return I18NHelper.getMessage(MESSAGES, key, arg1, arg2); 87 } 88 89 92 static protected final String getI18N(String key, 93 String arg1, 94 String arg2, 95 String arg3) { 96 return I18NHelper.getMessage(MESSAGES, key, arg1, arg2, arg3); 97 } 98 99 102 static protected final String getI18N(String key, 103 int arg1, 104 String arg2) { 105 return I18NHelper.getMessage(MESSAGES, key, 106 new Object []{new Integer (arg1), arg2}); 107 } 108 109 112 static protected final String getI18N(String key, 113 Object [] args) { 114 return I18NHelper.getMessage(MESSAGES, key, args); 115 } 116 } 117 | Popular Tags |