Package net.solarnetwork.web.support
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolderrefreshProperties(String filename, org.springframework.context.support.ReloadableResourceBundleMessageSource.PropertiesHolder propHolder) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) voidsetResourceResolver(org.springframework.core.io.support.ResourcePatternResolver resourceResolver) Set the resource resolver to use to.Methods inherited from class net.solarnetwork.web.support.ReloadableResourceBundleMessagesSource
getKeys, getMessageInternal, getParent, registerMessageResource, setBasenames, setParentMethods inherited from class org.springframework.context.support.ReloadableResourceBundleMessageSource
calculateAllFilenames, calculateFilenamesForLocale, clearCache, clearCacheIncludingAncestors, getMergedProperties, getProperties, loadProperties, newProperties, resolveCode, resolveCodeWithoutArguments, setConcurrentRefresh, setFileEncodings, setPropertiesPersister, toStringMethods inherited from class org.springframework.context.support.AbstractResourceBasedMessageSource
addBasenames, getBasenameSet, getCacheMillis, getDefaultEncoding, isFallbackToSystemLocale, setBasename, setCacheMillis, setCacheSeconds, setDefaultEncoding, setFallbackToSystemLocaleMethods inherited from class org.springframework.context.support.AbstractMessageSource
getCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, setCommonMessages, setParentMessageSource, setUseCodeAsDefaultMessageMethods inherited from class org.springframework.context.support.MessageSourceSupport
createMessageFormat, formatMessage, isAlwaysUseMessageFormat, renderDefaultMessage, setAlwaysUseMessageFormatMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
refreshPropertiesin classorg.springframework.context.support.ReloadableResourceBundleMessageSource
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware- Overrides:
setResourceLoaderin classorg.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.
-