Spring MVC special bean types in the WebApplicationContext 

Joined:
08/13/2009
Posts:
164

March 30, 2012 10:23:21    Last update: March 30, 2012 10:23:21
These bean types are essential for the Spring MVC framework. I copied them here from the Spring Documentation for quick reference.

Bean typeExplanation
HandlerMappingMaps incoming requests to handlers and a list of pre- and post-processors (handler interceptors) based on some criteria the details of which vary by HandlerMapping implementation. The most popular implementation supports annotated controllers but other implementations exists as well.
HandlerAdapterHelps the DispatcherServlet to invoke a handler mapped to a request regardless of the handler is actually invoked. For example, invoking an annotated controller requires resolving various annotations. Thus the main purpose of a HandlerAdapter is to shield the DispatcherServlet from such details.
HandlerExceptionResolverMaps exceptions to views also allowing for more complex exception handling code.
ViewResolverResolves logical String-based view names to actual View types.
LocaleResolverResolves the locale a client is using, in order to be able to offer internationalized views
ThemeResolverResolves themes your web application can use, for example, to offer personalized layouts
MultipartResolverParses multi-part requests for example to support processing file uploads from HTML forms.
FlashMapManagerStores and retrieves the "input" and the "output" FlashMap that can be used to pass attributes from one request to another, usually across a redirect.


Spring MVC provides a list of default beans to use if you don't configure any.
Share |
| Comment  | Tags