java.lang.Objectorg.springframework.context.support.MessageSourceSupport
Direct Known Subclasses:
StaticMessageSource, ReloadableResourceBundleMessageSource, DelegatingMessageSource, ResourceBundleMessageSource, AbstractMessageSource
AbstractMessageSource derives from this class, providing concrete
getMessage implementations that delegate to a central template
method for message code resolution.
Juergen - Hoeller2.5.5 - | Field Summary | ||
|---|---|---|
| protected final Log | logger | Logger available to subclasses |
| Method from org.springframework.context.support.MessageSourceSupport Summary: |
|---|
| createMessageFormat, formatMessage, isAlwaysUseMessageFormat, renderDefaultMessage, resolveArguments, setAlwaysUseMessageFormat |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.context.support.MessageSourceSupport Detail: |
|---|
|
|
|
The default implementation passes the String to |
The default implementation simply returns the given argument array as-is. Can be overridden in subclasses in order to resolve special argument types. |
Default is "false": Messages without arguments are by default returned as-is, without parsing them through MessageFormat. Set this to "true" to enforce MessageFormat for all messages, expecting all message texts to be written with MessageFormat escaping. For example, MessageFormat expects a single quote to be escaped as "''". If your message texts are all written with such escaping, even when not defining argument placeholders, you need to set this flag to "true". Else, only message texts with actual arguments are supposed to be written with MessageFormat escaping. |