Celtix User APIs

org.objectweb.celtix.common.i18n
Class BundleUtils

java.lang.Object
  extended by org.objectweb.celtix.common.i18n.BundleUtils

public final class BundleUtils
extends Object

A container for static utility methods related to resource bundle naming conventons.


Method Summary
static ResourceBundle getBundle(Class cls)
          Encapsulates the logic related to locating a resource bundle.
static String getBundleName(Class cls)
          Encapsulates the logic related to naming a resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBundleName

public static String getBundleName(Class cls)
Encapsulates the logic related to naming a resource bundle.

Parameters:
cls - the Class requiring the bundle
Returns:
an appropriate ResourceBundle name

getBundle

public static ResourceBundle getBundle(Class cls)
Encapsulates the logic related to locating a resource bundle.

Parameters:
cls - the Class requiring the bundle
Returns:
an appropriate ResourceBundle

Celtix User APIs