| java.lang.Object org.springframework.context.support.AbstractMessageSource org.springframework.context.support.StaticMessageSource
StaticMessageSource | public class StaticMessageSource extends AbstractMessageSource (Code) | | Simple implementation of
org.springframework.context.MessageSource which allows messages to be registered programmatically.
This MessageSource supports basic internationalization.
Intended for testing rather than for use in production systems.
author: Rod Johnson author: Juergen Hoeller |
addMessage | public void addMessage(String code, Locale locale, String msg)(Code) | | Associate the given message with the given code.
Parameters: code - the lookup code Parameters: locale - the locale that the message should be found within Parameters: msg - the message associated with this lookup code |
Fields inherited from org.springframework.context.support.AbstractMessageSource | final protected Log logger(Code)(Java Doc)
|
Methods inherited from org.springframework.context.support.AbstractMessageSource | protected MessageFormat createMessageFormat(String msg, Locale locale)(Code)(Java Doc) protected String formatMessage(String msg, Object[] args, Locale locale)(Code)(Java Doc) protected String getDefaultMessage(String code)(Code)(Java Doc) final public String getMessage(String code, Object[] args, String defaultMessage, Locale locale)(Code)(Java Doc) final public String getMessage(String code, Object[] args, Locale locale) throws NoSuchMessageException(Code)(Java Doc) final public String getMessage(MessageSourceResolvable resolvable, Locale locale) throws NoSuchMessageException(Code)(Java Doc) protected String getMessageFromParent(String code, Object[] args, Locale locale)(Code)(Java Doc) protected String getMessageInternal(String code, Object[] args, Locale locale)(Code)(Java Doc) public MessageSource getParentMessageSource()(Code)(Java Doc) protected boolean isAlwaysUseMessageFormat()(Code)(Java Doc) protected boolean isUseCodeAsDefaultMessage()(Code)(Java Doc) protected String renderDefaultMessage(String defaultMessage, Object[] args, Locale locale)(Code)(Java Doc) protected Object[] resolveArguments(Object[] args, Locale locale)(Code)(Java Doc) abstract protected MessageFormat resolveCode(String code, Locale locale)(Code)(Java Doc) protected String resolveCodeWithoutArguments(String code, Locale locale)(Code)(Java Doc) public void setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat)(Code)(Java Doc) public void setParentMessageSource(MessageSource parent)(Code)(Java Doc) public void setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage)(Code)(Java Doc)
|
|
|