Polish synchronization of model attributes with the session.

This commit is contained in:
Rossen Stoyanchev
2011-11-04 22:14:13 +00:00
parent d3f4c69f00
commit bef75aab07
4 changed files with 94 additions and 105 deletions

View File

@@ -50,10 +50,9 @@ import org.springframework.web.servlet.mvc.method.annotation.ServletRequestDataB
public class ServletModelAttributeMethodProcessor extends ModelAttributeMethodProcessor {
/**
* @param annotationNotRequired if {@code true}, any non-simple type
* argument or return value is regarded as a model attribute even without
* the presence of a {@code @ModelAttribute} annotation in which case the
* attribute name is derived from the model attribute's type.
* @param annotationNotRequired if "true", non-simple method arguments and
* return values are considered model attributes with or without a
* {@code @ModelAttribute} annotation.
*/
public ServletModelAttributeMethodProcessor(boolean annotationNotRequired) {
super(annotationNotRequired);