public class PropertiesMessageResolver extends AbstractMessageResolver
DEFAULT_MESSAGE_PATH
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MESSAGE_PATH
Classpath location of default message map.
|
Constructor and Description |
---|
PropertiesMessageResolver()
Creates a new message resolver with the default message properties.
|
PropertiesMessageResolver(Properties properties)
Creates a new message resolver with the supplied message properties.
|
Modifier and Type | Method and Description |
---|---|
static Properties |
getDefaultProperties()
Returns the default mapping of message keys to message strings.
|
protected String |
getMessage(String key)
Returns the message for the supplied key.
|
getLocale, resolve, setLocale
public static final String DEFAULT_MESSAGE_PATH
public PropertiesMessageResolver()
getDefaultProperties()
.public PropertiesMessageResolver(Properties properties)
properties
- map of keys to messages.protected String getMessage(String key)
AbstractMessageResolver
getMessage
in class AbstractMessageResolver
key
- which corresponds to a messagepublic static Properties getDefaultProperties()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.