public final class MessageResolverChain extends Object implements MessageResolver
MessageResolver
s.DEFAULT
Constructor and Description |
---|
MessageResolverChain(MessageResolver... chain)
Constructs a new
MessageResolverChain with the specified
chain of message resolvers. |
Modifier and Type | Method and Description |
---|---|
String |
resolveMessage(String key,
Locale locale)
Returns message for the specified key and locale.
|
public MessageResolverChain(MessageResolver... chain)
MessageResolverChain
with the specified
chain of message resolvers.chain
- Chain of message resolvers.public String resolveMessage(String key, Locale locale)
resolveMessage
in interface MessageResolver
key
- Message key.locale
- Message locale.MissingResourceException
- if message for the specified key is
not found in all of the provided message resolvers.Copyright © 2011–2020 FoxLabs. All rights reserved.