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
FieldsModifier and TypeFieldDescription(package private) jakarta.enterprise.inject.Instance<org.hibernate.validator.spi.messageinterpolation.LocaleResolver> -
Constructor Summary
Constructors -
Method Summary
-
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:
resolvein interfaceorg.hibernate.validator.spi.messageinterpolation.LocaleResolver
-