public abstract class AbstractMessageSource extends Object implements MessageSource
MessageSource
implementation that provides basic message interpolation.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractMessageSource.MessageKey
Internal key storage.
|
MessageSource.MessageContext
EMPTY
Constructor and Description |
---|
AbstractMessageSource() |
Modifier and Type | Method and Description |
---|---|
String |
interpolate(String template,
MessageSource.MessageContext context)
Interpolate the given message template.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getMessage, getRequiredMessage
@Nonnull public String interpolate(@Nonnull String template, @Nonnull MessageSource.MessageContext context)
MessageSource
interpolate
in interface MessageSource
template
- The templatecontext
- The context to use.