/**
* Strategy interface for resolving messages, with support for the parameterization
* and internationalization of such messages.
*
* <p>Spring provides two out-of-the-box implementations for production:
* <ul>
* <li>{@link org.springframework.context.support.ResourceBundleMessageSource},
* built on top of the standard {@link java.util.ResourceBundle}
* <li>{@link org.springframework.context.support.ReloadableResourceBundleMessageSource},
* being able to reload message definitions without restarting the VM
* </ul>
*
* @author Rod Johnson
* @author Juergen Hoeller
* @see org.springframework.context.support.ResourceBundleMessageSource
* @see org.springframework.context.support.ReloadableResourceBundleMessageSource
*/
public interface MessageSource
spring中的策略模式--MessageSource
最新推荐文章于 2024-11-09 08:00:00 发布
本文介绍了一个消息源接口,用于消息的参数化与国际化,并提供了两种实现方式:基于标准ResourceBundle的消息源实现(ResourceBundleMessageSource)及能够不重启虚拟机即可重新加载消息定义的ReloadableResourceBundleMessageSource。
929

被折叠的 条评论
为什么被折叠?



