1 26 27 package org.objectweb.ccm.trace; 28 29 import java.util.MissingResourceException ; 30 import java.util.ResourceBundle ; 31 32 public class OpenCCM_Topics { 33 34 37 private static final String BUNDLE_NAME = "org.objectweb.ccm.trace.topicsBase"; 38 39 42 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); 43 44 45 50 public static String getPreTopic(String key) { 51 try { 52 return RESOURCE_BUNDLE.getString(key); 53 } catch (MissingResourceException e) { 54 return '!' + key + '!'; 55 } 56 } 57 } 58 | Popular Tags |