public class ResourceBundleMessageResolver extends AbstractMessageResolver
ResourceBundle.getBundle(String)
to
load the default bundle.Constructor and Description |
---|
ResourceBundleMessageResolver()
Creates a new message resolver with the default message map.
|
ResourceBundleMessageResolver(ResourceBundle bundle)
Creates a new message resolver with the supplied resource bundle.
|
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getDefaultBundle()
Returns the default resource bundle which is found in passay.properties.
|
protected String |
getMessage(String key)
Returns the message for the supplied key.
|
getLocale, resolve, setLocale
public ResourceBundleMessageResolver()
public ResourceBundleMessageResolver(ResourceBundle bundle)
bundle
- locale specific map of keys to messages.protected String getMessage(String key)
AbstractMessageResolver
getMessage
in class AbstractMessageResolver
key
- which corresponds to a messagepublic static ResourceBundle getDefaultBundle()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.