public abstract class AbstractMessageSource extends java.lang.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 |
---|---|
java.lang.String |
interpolate(java.lang.String template,
MessageSource.MessageContext context)
Interpolate the given message template.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, getMessage, getRawMessage, getRawMessage, getRequiredMessage, getRequiredRawMessage
@NonNull public java.lang.String interpolate(@NonNull java.lang.String template, @NonNull MessageSource.MessageContext context)
MessageSource
interpolate
in interface MessageSource
template
- The templatecontext
- The context to use.