org.apache.clerezza.triaxrs.util
Class MessageBundle

java.lang.Object
  extended by org.apache.clerezza.triaxrs.util.MessageBundle

public class MessageBundle
extends Object

Loads and holds a ResourceBundle according to the specified parameters.


Constructor Summary
MessageBundle(String packageName, String resourceName, Locale locale, ClassLoader classLoader)
           
 
Method Summary
 String getMessage(String key)
          Gets a string message from the resource bundle for the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBundle

public MessageBundle(String packageName,
                     String resourceName,
                     Locale locale,
                     ClassLoader classLoader)
              throws MissingResourceException
Throws:
MissingResourceException
Method Detail

getMessage

public String getMessage(String key)
                  throws MissingResourceException
Gets a string message from the resource bundle for the given key

Parameters:
key - The resource key
Returns:
The message
Throws:
MissingResourceException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.