public class MessageInterpolatorFactory
extends java.lang.Object
implements org.springframework.beans.factory.ObjectFactory<javax.validation.MessageInterpolator>
ObjectFactory that can be used to create a MessageInterpolator.
Attempts to pick the most appropriate MessageInterpolator based on the
classpath.| Constructor and Description |
|---|
MessageInterpolatorFactory() |
MessageInterpolatorFactory(org.springframework.context.MessageSource messageSource)
Creates a new
MessageInterpolatorFactory that will produce a
MessageInterpolator that uses the given messageSource to resolve
any message parameters before final interpolation. |
| Modifier and Type | Method and Description |
|---|---|
javax.validation.MessageInterpolator |
getObject() |
public MessageInterpolatorFactory()
public MessageInterpolatorFactory(org.springframework.context.MessageSource messageSource)
MessageInterpolatorFactory that will produce a
MessageInterpolator that uses the given messageSource to resolve
any message parameters before final interpolation.messageSource - message source to be used by the interpolator