org.apache.clerezza.triaxrs.util
Class Messages
java.lang.Object
org.apache.clerezza.triaxrs.util.Messages
public class Messages
- extends Object
|
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 |
Messages
public Messages()
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 keyargs - Any parameter arguments for the message
- Returns:
- The formatted message
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.