Top Description Methods
org.hibernate.validator.spi.messageinterpolation

public Interface LocaleResolver

Known Direct Implementers
org.hibernate.validator.internal.engine.messageinterpolation.DefaultLocaleResolver
Annotations
@Incubating
Imports
java.util.Locale, org.hibernate.validator.Incubating

Define the strategy used to resolve the locale user for message interpolation when no locale is defined from the list of supported locales.
Author
Guillaume Smet
Since
6.1.1

Method Summary

Modifier and TypeMethod and Description
public Locale

Returns:

the locale to use for message interpolation, never null
resolve
(LocaleResolverContext
the context
context
)

Returns the locale used for message interpolation when no locale is defined.

Method Detail

resolveback to summary
public Locale resolve(LocaleResolverContext context)

Returns the locale used for message interpolation when no locale is defined.

Parameters
context:LocaleResolverContext

the context

Returns:Locale

the locale to use for message interpolation, never null