Class BindingAwareModelMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, Model

public class BindingAwareModelMap extends ExtendedModelMap
Subclass of ExtendedModelMap that automatically removes a BindingResult object if the corresponding target attribute gets replaced through regular Map operations.

This is the class exposed to handler methods by Spring MVC, typically consumed through a declaration of the Model interface. There is no need to build it within user code; a plain ModelMap or even a just a regular Map with String keys will be good enough to return a user model.

Since:
2.5.6
Author:
Juergen Hoeller
See Also: