Issue Details (XML | Word | Printable)

Key: SPR-4079
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Juergen Hoeller
Reporter: Tom Czarniecki
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring Framework

ControllerBeanNameHandlerMapping to register all Controllers (and ThrowawayControllers) by their bean name regardless of the format of the name or alias.

Created: 11/Nov/07 03:22 PM   Updated: 26/Mar/08 10:54 AM
Component/s: SpringWEB
Affects Version/s: None
Fix Version/s: 2.5.3

Time Tracking:
Not Specified

File Attachments: 1. Java Source File ControllerBeanNameHandlerMapping.java (7 kB)

Environment: Any
Issue Links:
Related
 


 Description  « Hide
This class differs from the BeanNameUrlHandlerMapping by registering all beans that implement the Controller and ThrowawayController interfaces, regardless of the format of the alias or bean name. However, the bean name and aliases are converted to a URL format before registration. This allows us to have the same controller class appear in different beans, as opposed to the ControllerClassNameHandlerMapping.


 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Tom Czarniecki added a comment - 11/Nov/07 03:23 PM
Source file for controller

Juergen Hoeller added a comment - 26/Mar/08 10:54 AM
I've added a ControllerBeanNameHandlerMapping strategy for Spring 2.5.3, based on your suggestion. This is in line with our revised ControllerClassNameHandlerMapping, also detecting @Controller beans.

This will be available in tonight's 2.5.3 snapshot (http://static.springframework.org/downloads/nightly/snapshot-download.php?project=SPR). Feel free to give it a try and let me know whether it works for you...

Juergen