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'sObjectMapper
, with priority with respect to default ones - registers an instance of MessageCon
- Author:
- Manuel Fiorelli
-
Constructor Summary
ConstructorDescriptionRequestMappingHandlerAdapterPostProcessor
(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory, STServiceContext stServiceContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper
(ExtensionPointManager exptManager) static com.fasterxml.jackson.databind.ObjectMapper
createObjectMapper
(ExtensionPointManager exptManager, STServiceContext stServiceContext) postProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName)
-
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 interfaceorg.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 interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-