ThrowawayController.java | Interface | ThrowawayController is an alternative to Spring's default Controller interface,
for executable per-request command instances that are not aware of the Servlet API.
In contrast to Controller, implementing beans are not supposed to be defined as
Servlet/Struts-style singletons that process a HttpServletRequest but rather as
WebWork/Maverick-style prototypes that get populated with request parameters,
executed to determine a view, and thrown away afterwards.
The main advantage of this controller programming model is that controllers
are testable without HttpServletRequest/HttpServletResponse mocks, just like
WebWork actions. |