public class MockLocalization extends java.lang.Object implements Localization
Constructor and Description |
---|
MockLocalization() |
Modifier and Type | Method and Description |
---|---|
java.util.ResourceBundle |
getBundle()
Get the resource bundle for current locale.
|
java.util.Locale |
getFallbackLocale()
Get the fallback locale for current request.
|
java.util.Locale |
getLocale()
Get the locale for current request.
|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object... parameters)
Returns a formated message or '???key???' if the key was not found.
|
public java.util.ResourceBundle getBundle()
Localization
MissingResourceException
.getBundle
in interface Localization
Localization.getLocale()
public java.util.Locale getFallbackLocale()
Localization
getFallbackLocale
in interface Localization
public java.util.Locale getLocale()
Localization
getLocale
in interface Localization
public java.lang.String getMessage(java.lang.String key, java.lang.Object... parameters)
Localization
getMessage
in interface Localization
Copyright © 2013 Caelum. All Rights Reserved.