Package | Description |
---|---|
openthinks.libs.i18n | |
openthinks.libs.i18n.implement.bundle | |
openthinks.libs.i18n.implement.database |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
I18n.getMessage(IMessageType messageType,
java.util.Locale locale,
java.lang.String messageId,
java.lang.Object... args)
get message by message type, locale,message id and arguments.
|
static java.lang.String |
I18n.getMessage(IMessageType messageType,
java.lang.String messageId,
java.lang.Object... args)
get message by message type,
Locale.getDefault() ,message id and arguments. |
IMessagePack |
IMessageContext.getMessagePack(IMessageType messageType)
get message pack by message type
|
Modifier and Type | Interface and Description |
---|---|
interface |
IBundleMessageType
Used to implemented for customized
IMessageType Need to use a combination of BundleMessageContext Useage:
public enum DefaultBundleMessageType implements IBundleMessageType { |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBundleMessageType
The implements need support the method value() to return
the string as format : [type:]<full-path>
For example
Log:resource/i18n/Log |
Modifier and Type | Method and Description |
---|---|
IMessagePack |
BundleMessageContext.getMessagePack(IMessageType messageType) |
Modifier and Type | Interface and Description |
---|---|
interface |
IPersistMessageType
Be similar to
IBundleMessageType .When user retrieve persist message from database by IMessageType , there need class which implement from it. |
Modifier and Type | Method and Description |
---|---|
IMessagePack |
PersistMessageContext.getMessagePack(IMessageType messageType) |