open class StaticMessageSource : AbstractMessageSource
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
StaticMessageSource()
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. |
open fun addMessage(code: String, locale: Locale, msg: String): Unit
Associate the given message with the given code. |
|
open fun addMessages(messages: MutableMap<String, String>, locale: Locale): Unit
Associate the given message values with the given keys as codes. |
|
open fun toString(): String |