polish
This commit is contained in:
parent
71cbd982e3
commit
503f69b960
|
|
@ -158,6 +158,8 @@ public class GenericBinder<M> implements Binder<M> {
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// internal helpers
|
||||||
|
|
||||||
class BindingImpl implements Binding {
|
class BindingImpl implements Binding {
|
||||||
|
|
||||||
private Expression property;
|
private Expression property;
|
||||||
|
|
@ -335,14 +337,15 @@ public class GenericBinder<M> implements Binder<M> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private EvaluationContext createEvaluationContext() {
|
private EvaluationContext createEvaluationContext() {
|
||||||
StandardEvaluationContext context = new StandardEvaluationContext();
|
StandardEvaluationContext context = new StandardEvaluationContext();
|
||||||
context.setRootObject(model);
|
context.setRootObject(model);
|
||||||
context.addPropertyAccessor(new MapAccessor());
|
context.addPropertyAccessor(new MapAccessor());
|
||||||
context.setTypeConverter(new StandardTypeConverter(typeConverter));
|
context.setTypeConverter(new StandardTypeConverter(typeConverter));
|
||||||
return context;
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Class getAnnotationType(AnnotationFormatterFactory factory) {
|
private Class getAnnotationType(AnnotationFormatterFactory factory) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue