Save This Page
Home » spring-framework-2.5.4 » org.springframework » context » support » [javadoc | source]
org.springframework.context.support
public class: MessageSourceResourceBundle [javadoc | source]
java.lang.Object
   java.util.ResourceBundle
      org.springframework.context.support.MessageSourceResourceBundle
Helper class that allows for accessing a Spring org.springframework.context.MessageSource as a java.util.ResourceBundle . Used for example to expose a Spring MessageSource to JSTL web views.
Constructor:
 public MessageSourceResourceBundle(MessageSource source,
    Locale locale) 
    Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
    Parameters:
    source - the MessageSource to retrieve messages from
    locale - the Locale to retrieve messages for
 public MessageSourceResourceBundle(MessageSource source,
    Locale locale,
    ResourceBundle parent) 
    Create a new MessageSourceResourceBundle for the given MessageSource and Locale.
    Parameters:
    source - the MessageSource to retrieve messages from
    locale - the Locale to retrieve messages for
    parent - the parent ResourceBundle to delegate to if no local message found
Method from org.springframework.context.support.MessageSourceResourceBundle Summary:
getKeys,   handleGetObject
Methods from java.util.ResourceBundle:
clearCache,   clearCache,   containsKey,   getBundle,   getBundle,   getBundle,   getBundle,   getBundle,   getBundle,   getKeys,   getLocale,   getObject,   getString,   getStringArray,   keySet
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.support.MessageSourceResourceBundle Detail:
 public Enumeration getKeys() 
    This implementation returns null, as a MessageSource does not allow for enumerating the defined message codes.
 protected Object handleGetObject(String code) 
    This implementation resolves the code in the MessageSource. Returns null if the message could not be resolved.