Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-7091

AnnotationDrivenBeanDefinitionParser should allow injection of custom HttpMessageConverter's

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.0.1, 3.0.2
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      1. There should be a way to inject custom http message converters into AnnotationDrivenBeanDefinitionParser. Currently its hardcoded and set to a private method

      private ManagedList<RootBeanDefinition> getMessageConverters(Object source)

      { ... }

      2. AnnotationMethodHandlerAdapter has hardcoded the HttpMessageConverters as well, when replacing the bean with something like

      <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
      <property name="messageConverters">
      <list>
      <ref bean="customConverter"/>
      </list>
      </property>
      </bean>

      The AnnotationMethodHandlerAdapter bean is never replaced within the Spring Context.

      Please let me know if there is a different solution?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstoya05-aop Rossen Stoyanchev
                Reporter:
                krasaee Kasra Rasaee
                Last updater:
                Trevor Marshall
              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 18 weeks, 4 days ago