类 MessageInterpolatorFactory
java.lang.Object
org.springframework.boot.validation.MessageInterpolatorFactory
- 所有已实现的接口:
ObjectFactory<MessageInterpolator>
public class MessageInterpolatorFactory
extends Object
implements ObjectFactory<MessageInterpolator>
ObjectFactory
that can be used to create a MessageInterpolator
.
Attempts to pick the most appropriate MessageInterpolator
based on the
classpath.- 从以下版本开始:
- 1.5.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明MessageInterpolatorFactory
(MessageSource messageSource) Creates a newMessageInterpolatorFactory
that will produce aMessageInterpolator
that uses the givenmessageSource
to resolve any message parameters before final interpolation. -
方法概要
-
构造器详细资料
-
MessageInterpolatorFactory
public MessageInterpolatorFactory() -
MessageInterpolatorFactory
Creates a newMessageInterpolatorFactory
that will produce aMessageInterpolator
that uses the givenmessageSource
to resolve any message parameters before final interpolation.- 参数:
messageSource
- message source to be used by the interpolator- 从以下版本开始:
- 2.6.0
-
-
方法详细资料
-
getObject
- 指定者:
getObject
在接口中ObjectFactory<MessageInterpolator>
- 抛出:
BeansException
-