Class MessageInterpolatorFactory
java.lang.Object
org.springframework.boot.validation.MessageInterpolatorFactory
- All Implemented Interfaces:
- 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.- Since:
- 1.5.0
- Author:
- Phillip Webb
- 
Constructor SummaryConstructorsConstructorDescriptionMessageInterpolatorFactory(@Nullable MessageSource messageSource) Creates a newMessageInterpolatorFactorythat will produce aMessageInterpolatorthat uses the givenmessageSourceto resolve any message parameters before final interpolation.
- 
Method Summary
- 
Constructor Details- 
MessageInterpolatorFactorypublic MessageInterpolatorFactory()
- 
MessageInterpolatorFactoryCreates a newMessageInterpolatorFactorythat will produce aMessageInterpolatorthat uses the givenmessageSourceto resolve any message parameters before final interpolation.- Parameters:
- messageSource- message source to be used by the interpolator
- Since:
- 2.6.0
 
 
- 
- 
Method Details- 
getObject- Specified by:
- getObjectin interface- ObjectFactory<MessageInterpolator>
- Throws:
- BeansException
 
 
-