Class RequestMappingHandlerAdapterPostProcessor

java.lang.Object
it.uniroma2.art.semanticturkey.mvc.RequestMappingHandlerAdapterPostProcessor
All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean, org.springframework.beans.factory.config.BeanPostProcessor

@Component public class RequestMappingHandlerAdapterPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.aop.framework.AopInfrastructureBean
A BeanPostProcessor that reconfigures the RequestMappingHandlerAdapter bean created by the tag <mvc:annotation-driver>. Currently, it performs the following:
  • registers a HandlerMethodArgumentResolver that uses Jackson's ObjectMapper, with priority with respect to default ones
  • registers an instance of MessageCon
Author:
Manuel Fiorelli
  • Constructor Details

    • RequestMappingHandlerAdapterPostProcessor

      public RequestMappingHandlerAdapterPostProcessor(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory, STServiceContext stServiceContext)
  • Method Details

    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(ExtensionPointManager exptManager)
    • createObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper(ExtensionPointManager exptManager, STServiceContext stServiceContext)
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException