org.defne.utility.messages
Class Localization

java.lang.Object
  extended by org.defne.utility.messages.Localization

public final class Localization
extends Object

Provides localized message.

Version:
$Rev$ $Date$
Author:
gurkanerdogdu

Constructor Summary
Localization(String baseName, Locale locale, ClassLoader classloader)
          Creates a new instance.
 
Method Summary
 String getMessage(String key, Object[] args)
          Gets formatted message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Localization

public Localization(String baseName,
                    Locale locale,
                    ClassLoader classloader)
Creates a new instance.

Parameters:
baseName - base name
locale - locale
classloader - class loader
Method Detail

getMessage

public String getMessage(String key,
                         Object[] args)
Gets formatted message.

Parameters:
key - message key
args - format arguments
Returns:
the formatted messsage


Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.