Browse Source

presentation model binder

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1613 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 17 years ago
parent
commit
bc27c13d71
  1. 4
      org.springframework.context/src/main/java/org/springframework/ui/binding/binder/PresentationModelBinder.java
  2. 2
      org.springframework.context/src/main/java/org/springframework/ui/binding/binder/WebBinder.java
  3. 4
      org.springframework.context/src/test/java/org/springframework/ui/binding/binder/GenericBinderTests.java

4
org.springframework.context/src/main/java/org/springframework/ui/binding/binder/GenericBinder.java → org.springframework.context/src/main/java/org/springframework/ui/binding/binder/PresentationModelBinder.java

@ -34,7 +34,7 @@ import org.springframework.util.Assert; @@ -34,7 +34,7 @@ import org.springframework.util.Assert;
* @see #setRequiredFields(String[])
* @see #bind(Map)
*/
public class GenericBinder implements Binder {
public class PresentationModelBinder implements Binder {
private PresentationModel presentationModel;
@ -42,7 +42,7 @@ public class GenericBinder implements Binder { @@ -42,7 +42,7 @@ public class GenericBinder implements Binder {
private MessageSource messageSource;
public GenericBinder(PresentationModel presentationModel) {
public PresentationModelBinder(PresentationModel presentationModel) {
Assert.notNull(presentationModel, "The PresentationModel is required");
this.presentationModel = presentationModel;
}

2
org.springframework.context/src/main/java/org/springframework/ui/binding/binder/WebBinder.java

@ -29,7 +29,7 @@ import org.springframework.ui.binding.PresentationModel; @@ -29,7 +29,7 @@ import org.springframework.ui.binding.PresentationModel;
* @see #setDefaultPrefix(String)
* @see #setPresentPrefix(String)
*/
public class WebBinder extends GenericBinder {
public class WebBinder extends PresentationModelBinder {
private String defaultPrefix = "!";

4
org.springframework.context/src/test/java/org/springframework/ui/binding/binder/GenericBinderTests.java

@ -38,7 +38,7 @@ import org.springframework.ui.message.MockMessageSource; @@ -38,7 +38,7 @@ import org.springframework.ui.message.MockMessageSource;
public class GenericBinderTests {
private GenericBinder binder;
private PresentationModelBinder binder;
private DefaultPresentationModel presentationModel;
@ -48,7 +48,7 @@ public class GenericBinderTests { @@ -48,7 +48,7 @@ public class GenericBinderTests {
public void setUp() {
bean = new TestBean();
presentationModel = new DefaultPresentationModel(bean);
binder = new GenericBinder(presentationModel);
binder = new PresentationModelBinder(presentationModel);
LocaleContextHolder.setLocale(Locale.US);
}

Loading…
Cancel
Save