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