org.springframework.boot.validation

Class MessageInterpolatorFactory

  • java.lang.Object
    • org.springframework.boot.validation.MessageInterpolatorFactory
  • All Implemented Interfaces:
    org.springframework.beans.factory.ObjectFactory<javax.validation.MessageInterpolator>


    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.
    Since:
    1.5.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      javax.validation.MessageInterpolator getObject() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageInterpolatorFactory

        public MessageInterpolatorFactory()
      • MessageInterpolatorFactory

        public 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.
        Parameters:
        messageSource - message source to be used by the interpolator
        Since:
        2.6.0
    • Method Detail

      • getObject

        public javax.validation.MessageInterpolator getObject()
                                                       throws org.springframework.beans.BeansException
        Specified by:
        getObject in interface org.springframework.beans.factory.ObjectFactory<javax.validation.MessageInterpolator>
        Throws:
        org.springframework.beans.BeansException