Class LocaleResolversWrapper

java.lang.Object
io.quarkus.hibernate.validator.runtime.locale.LocaleResolversWrapper
All Implemented Interfaces:
org.hibernate.validator.spi.messageinterpolation.LocaleResolver

@Singleton @Named("locale-resolver-wrapper") public class LocaleResolversWrapper extends Object implements org.hibernate.validator.spi.messageinterpolation.LocaleResolver
Wrapper for potentially multiple locale resolvers. The first one that actually returns a non-null Locale will be used.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) jakarta.enterprise.inject.Instance<org.hibernate.validator.spi.messageinterpolation.LocaleResolver>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(org.hibernate.validator.spi.messageinterpolation.LocaleResolverContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • resolvers

      @Inject jakarta.enterprise.inject.Instance<org.hibernate.validator.spi.messageinterpolation.LocaleResolver> resolvers
  • Constructor Details

    • LocaleResolversWrapper

      public LocaleResolversWrapper()
  • Method Details

    • resolve

      public Locale resolve(org.hibernate.validator.spi.messageinterpolation.LocaleResolverContext context)
      Specified by:
      resolve in interface org.hibernate.validator.spi.messageinterpolation.LocaleResolver