Class VersionedMessageDaoMessageSource

java.lang.Object
org.springframework.context.support.MessageSourceSupport
org.springframework.context.support.AbstractMessageSource
net.solarnetwork.central.support.VersionedMessageDaoMessageSource
All Implemented Interfaces:
org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource

public class VersionedMessageDaoMessageSource extends org.springframework.context.support.AbstractMessageSource
MessageSource implementation that uses a VersionedMessageDao to load messages.
Since:
2.6
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a Properties object of all available messages for a given locale.
    protected MessageFormat
    resolveCode(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
  • Constructor Details

  • Method Details

    • resolveCode

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

      public Properties propertiesForLocale(Locale locale)
      Get a Properties object of all available messages for a given locale.
      Parameters:
      locale - the locale of the messages to get
      Returns:
      the properties or null if none available