Skip to content

Support for interception of controller method invocation after binding has completed [SPR-7793] #12449

@spring-projects-issues

Description

@spring-projects-issues

Mark Pollack opened SPR-7793 and commented

Other MVC framework such as Ruby on Rails and ASP.NET MVC support interception after parameter binding has occured. Spring MVC should support this extension point. The use case driving this are storing of MVC event analytics data in NoSQL databases such as MongoDB. The current filter support in MVC is before binding has taken place and therefore harder to access information that will be converted to objects at the time of controller invocation.

See https://github.com/SpringSource/spring-data-document/tree/master/spring-data-document-core/src/main/java/org/springframework/data/document/web/servlet

for an example implementation.

These are called 'action filters' in Ruby on Rails/ASP.NET MVC

http://guides.rubyonrails.org/action_controller_overview.html

http://www.asp.net/mvc/tutorials/understanding-action-filters-cs


Affects: 3.0 GA

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions