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
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
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, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getRawMessage, getRawMessage, getRequiredMessage, getRequiredRawMessage
@NonNull public String interpolate(@NonNull String template, @NonNull MessageSource.MessageContext context)
MessageSource
interpolate
in interface MessageSource
template
- The templatecontext
- The context to use.