Class ElTermResolver
java.lang.Object
org.hibernate.validator.internal.engine.messageinterpolation.ElTermResolver
- All Implemented Interfaces:
TermResolver
Resolver for the el expressions.
- Author:
- Hardy Ferentschik, Adam Stawicki, Guillaume Smet
-
Constructor Summary
ConstructorsConstructorDescriptionElTermResolver(Locale locale, ExpressionFactory expressionFactory) Construct the resolver. -
Method Summary
Modifier and TypeMethodDescriptioninterpolate(MessageInterpolator.Context context, String expression) Interpolates given term based on the constraint validation context.
-
Constructor Details
-
ElTermResolver
Construct the resolver. The expression factory has to be passed in to ensure that it is set up early and to allow for application control.- Parameters:
locale- the locale.expressionFactory- the expression factory.
-
-
Method Details
-
interpolate
Description copied from interface:TermResolverInterpolates given term based on the constraint validation context.- Specified by:
interpolatein interfaceTermResolver- Parameters:
context- contextual information related to the interpolationexpression- the message to interpolate- Returns:
- interpolated message
-