@Primary public final class CompositeMessageSource extends AbstractMessageSource
AbstractMessageSource.MessageKeyMessageSource.MessageContextEMPTY| Constructor and Description |
|---|
CompositeMessageSource(java.util.Collection<MessageSource> messageSources)
The other messages sources.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getRawMessage(java.lang.String code,
MessageSource.MessageContext context)
Resolve a message for the given code and context.
|
interpolateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessage, getMessage, getRawMessage, getRequiredMessage, getRequiredRawMessagepublic CompositeMessageSource(@Nullable
java.util.Collection<MessageSource> messageSources)
messageSources - The message sources.@NonNull
public java.util.Optional<java.lang.String> getRawMessage(@NonNull
java.lang.String code,
@NonNull
MessageSource.MessageContext context)
MessageSourcecode - The codecontext - The context