org.apache.clerezza.triaxrs.util
Class Messages

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

public class Messages
extends Object


Constructor Summary
Messages()
           
 
Method Summary
static String getMessage(String key)
          Get a message from resource.properties from the package of the given object.
static String getMessage(String key, Object... args)
          Get a message from resource.properties from the package of the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages()
Method Detail

getMessage

public static String getMessage(String key)
                         throws MissingResourceException
Get a message from resource.properties from the package of the given object.

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

getMessage

public static String getMessage(String key,
                                Object... args)
Get a message from resource.properties from the package of the given object.

Parameters:
key - The resource key
args - Any parameter arguments for the message
Returns:
The formatted message


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