This commit is contained in:
Keith Donald 2009-06-09 20:14:17 +00:00
parent 71cbd982e3
commit 503f69b960
1 changed files with 10 additions and 7 deletions

View File

@ -157,6 +157,8 @@ public class GenericBinder<M> implements Binder<M> {
} }
return results; return results;
} }
// internal helpers
class BindingImpl implements Binding { class BindingImpl implements Binding {
@ -334,15 +336,16 @@ public class GenericBinder<M> implements Binder<M> {
return new ExpressionEvaluationErrorResult(property.getExpressionString(), userValue, e); return new ExpressionEvaluationErrorResult(property.getExpressionString(), userValue, e);
} }
} }
} private EvaluationContext createEvaluationContext() {
StandardEvaluationContext context = new StandardEvaluationContext();
context.setRootObject(model);
context.addPropertyAccessor(new MapAccessor());
context.setTypeConverter(new StandardTypeConverter(typeConverter));
return context;
}
private EvaluationContext createEvaluationContext() {
StandardEvaluationContext context = new StandardEvaluationContext();
context.setRootObject(model);
context.addPropertyAccessor(new MapAccessor());
context.setTypeConverter(new StandardTypeConverter(typeConverter));
return context;
} }
private Class getAnnotationType(AnnotationFormatterFactory factory) { private Class getAnnotationType(AnnotationFormatterFactory factory) {