Announcement Announcement Module
Collapse
No announcement yet.
Getting <mvc:annotation-driven /> created AnnotationMethodHandlerAdapter from context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting <mvc:annotation-driven /> created AnnotationMethodHandlerAdapter from context

    I'm trying to get hold of the <mvc:annotation-driven /> created AnnotationMethodHandlerAdapter from the ApplicationContext. I'm able to get hold of this using
    Code:
    AnnotationMethodHandlerAdapter annotationMethodHandlerAdapter =  
                    (AnnotationMethodHandlerAdapter)context.getBean(AnnotationMethodHandlerAdapter.class);
    which is working for me.
    However this might break in case someone tries to configure the AnnotationMethodHandlerAdapter say add extra message converters and still keep the <mvc:annotation-driven />.

    Is there any default bean name that the <mvc:annotation-driven /> assigns to the instance of the AnnotationMethodHandlerAdapter so that i could make use of that?

    Thanks.
Working...
X