View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/jaxr/src/com/sun/xml/registry/client/browser/JAXRResourceBundle.java,v 1.2 2002/07/11 10:46:55 skchonghk Exp $ 3 */ 4 package com.sun.xml.registry.client.browser; 5 6 import java.util.*; 7 8 /*** 9 For loading the resource from ResourceBundle.properties 10 */ 11 public class JAXRResourceBundle { 12 13 private static JAXRResourceBundle instance; 14 private ResourceBundle bundle; 15 16 protected JAXRResourceBundle() { 17 // Load the resource bundle of default locale 18 bundle = ResourceBundle.getBundle("com.sun.xml.registry.client.browser.ResourceBundle"); 19 } 20 21 public static JAXRResourceBundle getInstance(){ 22 if (instance == null) { 23 synchronized(JAXRResourceBundle.class) { 24 if (instance == null) { 25 instance = new JAXRResourceBundle(); 26 } 27 } 28 } 29 return instance; 30 } 31 32 public Enumeration getKeys() { 33 return bundle.getKeys(); 34 } 35 36 public Locale getLocale() { 37 return bundle.getLocale(); 38 } 39 40 public Object getObject(String key) { 41 return bundle.getObject(key); 42 } 43 44 public String getString(String key) { 45 return bundle.getString(key); 46 } 47 48 public String[] getStringArray(String key) { 49 return bundle.getStringArray(key); 50 } 51 52 }

This page was automatically generated by Maven