Re: [hibernate-dev] [Bean Validation] Adding interpolation facilities

2009-03-09 Thread Emmanuel Bernard
Yes that's a valid argument. BTW I plan to introduce some kind of context object (another one) in interpolate to allow future extension wo breaking everybody's code. On Mar 9, 2009, at 06:36, Hardy Ferentschik wrote: Wouldn't this also mean that you have to change the MessageResolver inter

Re: [hibernate-dev] [Bean Validation] Adding interpolation facilities

2009-03-09 Thread Hardy Ferentschik
Wouldn't this also mean that you have to change the MessageResolver interface from MessageInterpolator.interpolate(String message, ConstraintDescriptor constraintDescriptor, Object value) to MessageInterpolator.interpolate(String message, ConstraintDescriptor constraintDescriptor, Obje

[hibernate-dev] [Bean Validation] Adding interpolation facilities

2009-03-07 Thread Emmanuel Bernard
What do you think of public class ConstraintValidatorContext { addInterpolatedParameter(String name, String value); } public class SyntaxValidator implements ConstraintValidatorString> { public boolean isValid(String value, ConstraintValidatorContext context) { detectedSyntax =