org.ow2.wildcat.util
Class Messages

java.lang.Object
  extended by org.ow2.wildcat.util.Messages

public final class Messages
extends Object

Helper class to handle logging messages.


Method Summary
static void init(String resource)
          Initialize the formatter of messages.
static String message(String key, Object... args)
          Formats a message referenced by key with its arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(String resource)
Initialize the formatter of messages.

Parameters:
resource - a filename to load the configuration

message

public static String message(String key,
                             Object... args)
Formats a message referenced by key with its arguments.

Parameters:
key - reference of the message
args - optional arguments
Returns:
a formatted String


Copyright © 2010 OW2 Consortium. All Rights Reserved.