Class DynamicMessageSource

java.lang.Object
org.springframework.context.support.MessageSourceSupport
org.springframework.context.support.AbstractMessageSource
io.jmix.dynmodel.impl.DynamicMessageSource
All Implemented Interfaces:
org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource

public class DynamicMessageSource extends org.springframework.context.support.AbstractMessageSource
Message source backed by the in-memory dynamic message store.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final DynamicMessageStore
     

    Fields inherited from class org.springframework.context.support.MessageSourceSupport

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @Nullable String
    getFromStore(String code, Locale locale)
     
    protected MessageFormat
    resolveCode(String code, Locale locale)
     
    protected @Nullable String
    resolveMessage(String code, Locale locale)
     

    Methods inherited from class org.springframework.context.support.AbstractMessageSource

    getCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, resolveCodeWithoutArguments, setCommonMessages, setParentMessageSource, setUseCodeAsDefaultMessage

    Methods inherited from class org.springframework.context.support.MessageSourceSupport

    createMessageFormat, formatMessage, isAlwaysUseMessageFormat, renderDefaultMessage, setAlwaysUseMessageFormat

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • resolveCode

      protected MessageFormat resolveCode(String code, Locale locale)
      Specified by:
      resolveCode in class org.springframework.context.support.AbstractMessageSource
    • resolveMessage

      protected @Nullable String resolveMessage(String code, Locale locale)
    • getFromStore

      protected @Nullable String getFromStore(String code, Locale locale)