defining custom model class in spring

I currently have a mapping method in spring with the following signature:

protected String checkout(ModelMap map) { ... return "logicalViewName"; }

I would like to define my custom map class that extends ModelMap and have that passed to my method instead. Is there a simple way to do this? I was going to replace the code that creates the initial map object but wasn't able to find out where that is.


There is no simple way to achieve this. You will need to alter Spring's internals to replace the implementation of ModelMap.

If you use Spring 3.1 or later, the class injecting the ModelMap is org.springframework.web.method.annotation.MapMethodProcessor.

Need Your Help

How can I represent a certain number of seconds (minutes) with the type unsigned long long int in C++

c++ types casting performancecounter

I need to perform an operation for 64 seconds. Every 8 seconds I need to perform another operation. Since I need an extreme temporal precision I am using QueryPerformanceFrequency and

Objective-C / iOS: PopOver

ios styles uipopover

I´m using the UIPopOver in iOS, but mine looks like this:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.