Class LocalizableMessage
- java.lang.Object
-
- org.glassfish.grizzly.localization.LocalizableMessage
-
- All Implemented Interfaces:
Localizable
public final class LocalizableMessage extends Object implements Localizable
- Author:
- WS Development Team
-
-
Field Summary
-
Fields inherited from interface org.glassfish.grizzly.localization.Localizable
NOT_LOCALIZABLE
-
-
Constructor Summary
Constructors Constructor Description LocalizableMessage(String bundlename, String key, Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArguments()
Returns the arguments for message formatting.String
getKey()
Gets the key in the resource bundle.String
getResourceBundleName()
-
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:Localizable
Gets the key in the resource bundle.- Specified by:
getKey
in interfaceLocalizable
- Returns:
- if this method returns
Localizable.NOT_LOCALIZABLE
, that means the message is not localizable, and the first item ofLocalizable.getArguments()
array holds a String.
-
getArguments
public Object[] getArguments()
Description copied from interface:Localizable
Returns the arguments for message formatting.- Specified by:
getArguments
in interfaceLocalizable
- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
public String getResourceBundleName()
- Specified by:
getResourceBundleName
in interfaceLocalizable
-
-