Skip to content

Making it easier to replace "RequestMappingHandlerAdapter.handleInternal" [SPR-12460] #17065

Closed
@spring-projects-issues

Description

@spring-projects-issues

Fabio Tudone opened SPR-12460 and commented

For a Spring Boot integration with a container not based on threads, in "RequestMappingHandlerAdapter.handleInternal" I need to use a different synchronization mechanism rather than "synchronized" but the method is "final". Actually "AbstractHandlerMethodAdapter.handle" is "final" too, so I can't redirect the call somewhere else in a "RequestMappingHandlerAdapter" subclass: I'd need to mirror the whole hierarchy and reconfigure Spring to use my own (unless I'm missing a more straightforward way, in which case I'd be very grateful if you could point me to it).

Would it be possible to ease this restriction?


Affects: 4.0.8, 4.1.2

Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java#L698

Issue Links:

Referenced from: commits f093a5f, ece2c90

Backported to: 4.0.9

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions