Class CompositeMessageSource

java.lang.Object
io.micronaut.context.AbstractMessageSource
io.micronaut.runtime.context.CompositeMessageSource
All Implemented Interfaces:
io.micronaut.context.MessageSource, io.micronaut.core.order.Ordered

@Primary public final class CompositeMessageSource extends io.micronaut.context.AbstractMessageSource
Composite message source that is the primary message source.
Since:
1.2
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.micronaut.context.AbstractMessageSource

    io.micronaut.context.AbstractMessageSource.MessageKey

    Nested classes/interfaces inherited from interface io.micronaut.context.MessageSource

    io.micronaut.context.MessageSource.MessageContext
  • Field Summary

    Fields inherited from interface io.micronaut.context.MessageSource

    EMPTY

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompositeMessageSource(@Nullable Collection<io.micronaut.context.MessageSource> messageSources)
    Deprecated.
    CompositeMessageSource(@Nullable List<io.micronaut.context.MessageSource> messageSources)
    The other messages sources.
  • Method Summary

    Modifier and Type
    Method
    Description
    getRawMessage(String code, io.micronaut.context.MessageSource.MessageContext context)
     

    Methods inherited from class io.micronaut.context.AbstractMessageSource

    interpolate

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.context.MessageSource

    getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getRawMessage, getRequiredMessage, getRequiredRawMessage

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Constructor Details

    • CompositeMessageSource

      @Deprecated public CompositeMessageSource(@Nullable Collection<io.micronaut.context.MessageSource> messageSources)
      Deprecated.
      The other messages sources.
      Parameters:
      messageSources - The message sources.
    • CompositeMessageSource

      @Inject public CompositeMessageSource(@Nullable List<io.micronaut.context.MessageSource> messageSources)
      The other messages sources.
      Parameters:
      messageSources - The message sources.
  • Method Details

    • getRawMessage

      public Optional<String> getRawMessage(String code, io.micronaut.context.MessageSource.MessageContext context)