org.sakaiproject.entitybroker.util.spring
Class EntityPropertiesServiceSpringImpl.SpringMessageBundle

java.lang.Object
  extended by org.springframework.context.support.MessageSourceSupport
      extended by org.springframework.context.support.AbstractMessageSource
          extended by org.springframework.context.support.ReloadableResourceBundleMessageSource
              extended by org.sakaiproject.entitybroker.util.spring.EntityPropertiesServiceSpringImpl.SpringMessageBundle
All Implemented Interfaces:
AbstractEntityPropertiesService.MessageBundle, org.springframework.context.HierarchicalMessageSource, org.springframework.context.MessageSource, org.springframework.context.ResourceLoaderAware
Enclosing class:
EntityPropertiesServiceSpringImpl

protected class EntityPropertiesServiceSpringImpl.SpringMessageBundle
extends org.springframework.context.support.ReloadableResourceBundleMessageSource
implements AbstractEntityPropertiesService.MessageBundle


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
protected EntityPropertiesServiceSpringImpl.SpringMessageBundle()
           
 
Method Summary
 List<String> getPropertyKeys(Locale locale)
          Get all the keys for a specific Locale
 String getPropertyMessage(String key, Object[] args, Locale locale)
          Try to resolve the message.
 
Methods inherited from class org.springframework.context.support.ReloadableResourceBundleMessageSource
calculateAllFilenames, calculateFilenamesForLocale, clearCache, clearCacheIncludingAncestors, getMergedProperties, getProperties, loadProperties, refreshProperties, resolveCode, resolveCodeWithoutArguments, setBasename, setBasenames, setCacheSeconds, setDefaultEncoding, setFallbackToSystemLocale, setFileEncodings, setPropertiesPersister, setResourceLoader, toString
 
Methods inherited from class org.springframework.context.support.AbstractMessageSource
getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, renderDefaultMessage, resolveArguments, setParentMessageSource, setUseCodeAsDefaultMessage
 
Methods inherited from class org.springframework.context.support.MessageSourceSupport
createMessageFormat, formatMessage, isAlwaysUseMessageFormat, setAlwaysUseMessageFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityPropertiesServiceSpringImpl.SpringMessageBundle

protected EntityPropertiesServiceSpringImpl.SpringMessageBundle()
Method Detail

getPropertyMessage

public String getPropertyMessage(String key,
                                 Object[] args,
                                 Locale locale)
Description copied from interface: AbstractEntityPropertiesService.MessageBundle
Try to resolve the message. Treat as an error if the message can't be found.

Specified by:
getPropertyMessage in interface AbstractEntityPropertiesService.MessageBundle
Parameters:
key - the code to lookup up, such as 'calculator.noRateSet'
args - Array of arguments that will be filled in for params within the message (params look like "{0}", "{1,date}", "{2,time}" within a message), or null if none.
locale - the Locale in which to do the lookup
Returns:
the resolved message

getPropertyKeys

public List<String> getPropertyKeys(Locale locale)
Description copied from interface: AbstractEntityPropertiesService.MessageBundle
Get all the keys for a specific Locale

Specified by:
getPropertyKeys in interface AbstractEntityPropertiesService.MessageBundle
Parameters:
locale - the Locale in which to do the lookup
Returns:
the list of all keys found for the given Locale


Copyright © 2007-2013 CARET, University of Cambridge. All Rights Reserved.