SpringSource/spring-framework — pull request #72 by ttddyy (2012-05-02 00:00:06+00:00)
Title: Add a factory class for handler interceptors

A factory bean to create a list of HandlerInterceptors and MappedInterceptors, providing ability to map:
url-path => handler-interceptors

It can also specify additional handler interceptors and mapped interceptors.
Thus, result of this factory bean can directly be injected to RequestMappingHandlerMapping bean.

# Background

In spring3.1 style configuration, RequestMappingHandlerMapping uses MappedInterceptor which specify one handler interceptor to multiple paths, but not the other way, a path to multiple handler interceptors.

pre-spring3.1:
- url-path => handler-interceptors

spring3.1:
- handler-interceptor => url-paths

I have multiple SimpleUrlHandlerMapping beans in old version app, and having ability to specify interceptors by path saves a lot of time, rather than re-maping the existing path-to-interceptors mappings to interceptor-to-paths style.

JIRA: SPR-9361
CLA: submitted