<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke" rel="nofollow">Oliver Drotbohm</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5763?redirect=false" rel="nofollow">SPR-5763</a></strong> and commented</p>
<p dir="auto"><code class="notranslate">AnnotationMethodHandlerAdapter</code> contains a private class <code class="notranslate">ServletHandlerMethodResolver</code> that could be used to tweak URL mappings for custom requirements if one was able to subclass it. Furthermore it would be very cool to use in test cases as you could easily test if you mappings work for certain requests. Currently you have to use <code class="notranslate">AnnotationMethodHandlerAdapter</code> directly and thus execute the method entirely.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M3</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106761" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12109" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12109/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12109">#12109</a> Make ServletHandlerMethodResolver protected (instead of private) to allow subclassing</li>
</ul>
<p dir="auto">7 votes, 6 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mycroft" rel="nofollow">Bruno Navert</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5087?redirect=false" rel="nofollow">SPR-5087</a></strong> and commented</p>
<p dir="auto">It would be useful to expose ServletHandlerMethodInvoker and ServletHandlerMethodResolver as public classes, rather than private inner classes. This would allow application code to call this directly to mimick the behaviour of Spring when calling handler methods.</p>
<p dir="auto">I have one such use case in my application, and ended up copy/pasting the invoker class, which is far from ideal.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.4</p>
<p dir="auto"><strong>Sub-tasks:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150567" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14048" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14048/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14048">#14048</a> expose ServletHandlerMethodResolver AnnotationMethodHandlerAdapter.getMethodResolver(Object handler) to application code</li>
</ul>
<p dir="auto">7 votes, 11 watchers</p>