Skip to content

Allow overriding InvocableHandlerMethod.invoke and/or ServletInvocableHandlerMethod.invokeAndHandle in subclasses [SPR-12484] #17090

Closed
@spring-projects-issues

Description

@spring-projects-issues

Fabio Tudone opened SPR-12484 and commented

I'm writing a new HandlerMethod dispatching transparently (asynchronously) on lightweight threads and I could reuse most of the existing ServletInvocableHandlerMethod and InvocableHandlerMethod, except invoke is private in the latter and can't be overridden, and invokeAndHandle is final in the first one (and so still can't be overridden).

Would it be possible to ease these restrictions so as to make it easier to reuse existing implementations?


Affects: 4.0.8, 4.1.2

Reference URL: https://github.com/spring-projects/spring-framework/blob/v4.1.2.RELEASE/spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java#L212

Issue Links:

Referenced from: commits 2496d68, 90ae073

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