Class PatternMatchingResourceBundleMessagesSource

java.lang.Object
org.springframework.context.support.MessageSourceSupport
org.springframework.context.support.AbstractMessageSource
org.springframework.context.support.AbstractResourceBasedMessageSource
org.springframework.context.support.ReloadableResourceBundleMessageSource
net.solarnetwork.web.support.ReloadableResourceBundleMessagesSource
net.solarnetwork.web.support.PatternMatchingResourceBundleMessagesSource
All Implemented Interfaces:
MessagesSource, org.springframework.beans.factory.Aware, org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource, org.springframework.context.ResourceLoaderAware

public class PatternMatchingResourceBundleMessagesSource extends ReloadableResourceBundleMessagesSource
Extension of ReloadableResourceBundleMessagesSource that supports a pattern resolver for matching any number of resources.
Version:
1.0
Author:
matt
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.context.support.ReloadableResourceBundleMessageSource

    org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder
    refreshProperties(String filename, org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder propHolder)
     
    void
    setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
     
    void
    setResourceResolver(org.springframework.core.io.support.ResourcePatternResolver resourceResolver)
    Set the resource resolver to use to.

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

    calculateAllFilenames, calculateFilenamesForLocale, clearCache, clearCacheIncludingAncestors, getMergedProperties, getProperties, loadProperties, newProperties, resolveCode, resolveCodeWithoutArguments, setConcurrentRefresh, setFileEncodings, setPropertiesPersister, toString

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

    addBasenames, getBasenameSet, getCacheMillis, getDefaultEncoding, isFallbackToSystemLocale, setBasename, setCacheMillis, setCacheSeconds, setDefaultEncoding, setFallbackToSystemLocale

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

    getCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, 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, wait, wait, wait

    Methods inherited from interface org.springframework.context.MessageSource

    getMessage, getMessage, getMessage
  • Constructor Details

    • PatternMatchingResourceBundleMessagesSource

      public PatternMatchingResourceBundleMessagesSource()
  • Method Details

    • refreshProperties

      protected org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder refreshProperties(String filename, org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder propHolder)
      Overrides:
      refreshProperties in class org.springframework.context.support.ReloadableResourceBundleMessageSource
    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
      Overrides:
      setResourceLoader in class org.springframework.context.support.ReloadableResourceBundleMessageSource
    • setResourceResolver

      public void setResourceResolver(org.springframework.core.io.support.ResourcePatternResolver resourceResolver)
      Set the resource resolver to use to.
      Parameters:
      resourceResolver - The resolver to use.