Allow overriding InvocableHandlerMethod.invoke and/or ServletInvocableHandlerMethod.invokeAndHandle in subclasses [SPR-12484] #17090
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
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
The text was updated successfully, but these errors were encountered: