Class CompositeMessageSource
java.lang.Object
io.micronaut.context.AbstractMessageSource
io.micronaut.runtime.context.CompositeMessageSource
- All Implemented Interfaces:
MessageSource, Ordered
Composite message source that is the primary message source.
- Since:
- 1.2
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMessageSource
AbstractMessageSource.MessageKeyNested classes/interfaces inherited from interface MessageSource
MessageSource.MessageContext -
Field Summary
Fields inherited from interface MessageSource
EMPTYFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCompositeMessageSource(@Nullable Collection<MessageSource> messageSources) Deprecated.CompositeMessageSource(@Nullable List<MessageSource> messageSources) The other messages sources. -
Method Summary
Modifier and TypeMethodDescriptiongetRawMessage(String code, MessageSource.MessageContext context) Resolve a message for the given code and context.Methods inherited from class AbstractMessageSource
interpolateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MessageSource
getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getRawMessage, getRequiredMessage, getRequiredRawMessage
-
Constructor Details
-
CompositeMessageSource
Deprecated.The other messages sources.- Parameters:
messageSources- The message sources.
-
CompositeMessageSource
The other messages sources.- Parameters:
messageSources- The message sources.
-
-
Method Details
-
getRawMessage
Description copied from interface:MessageSourceResolve a message for the given code and context.- Parameters:
code- The codecontext- The context- Returns:
- A message if present
-
CompositeMessageSource(java.util.@org.jspecify.annotations.Nullable List<io.micronaut.context.MessageSource>)instead.