Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC 3.0.5 - Determine request handler method in HandlerInterceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC 3.0.5 - Determine request handler method in HandlerInterceptor

    Has anyone found a clean (read: easy) way to determine which method on a handler/controller is executing for a given request? I would like to check the method for certain annotations, but other than trying to reverse engineer the RequestMapping, I haven't found a solid way of determining which method is about to execute. The code to check for annotations will live inside a HandlerInterceptor and run in HandlerInterceptor.preHandle(HttpServletRequest, HttpServletResponse, Object).

    Thanks!

  • #2
    Sounds AOP related to me. You can advise your controllers and do some kind of interrogation after (or before or around) each method execution.

    Comment

    Working...
    X