package info

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1641 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald 2009-07-27 18:23:33 +00:00
parent 397cef50ca
commit 02a10bd545
2 changed files with 9 additions and 5 deletions

View File

@ -30,7 +30,7 @@ import org.springframework.model.binder.BindingResult;
/**
* A {@link Binder} implementation that accepts any target object and uses
* Spring's Expression Language support to evaluate the keys in the field
* Spring's Expression Language (SpEL) to evaluate the keys in the field
* value Map.
* @author Mark Fisher
* @since 3.0
@ -43,12 +43,11 @@ public class GenericBinder extends AbstractBinder<Object> {
@Override
protected FieldBinder createFieldBinder(Object model) {
StandardEvaluationContext evaluationContext = new StandardEvaluationContext();
evaluationContext.setRootObject(model);
return new EvaluationContextFieldBinder(parser, evaluationContext);
StandardEvaluationContext context = new StandardEvaluationContext();
context.setRootObject(model);
return new EvaluationContextFieldBinder(parser, context);
}
private static class EvaluationContextFieldBinder implements FieldBinder {
private final ExpressionParser parser;

View File

@ -0,0 +1,5 @@
/**
* Binder API implementation support.
*/
package org.springframework.model.binder.support;