@Provider @Component(value="blJaxrsObjectMapperProvider") @Deprecated public class JaxrsObjectMapperProvider extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>, org.springframework.beans.factory.InitializingBean
Customized provider for a Jackson ObjectMapper that ensures singleelement objects are serialized in JSON array syntax both on Serialization and Deserialization.
This also ensures that the JaxbAnnotationModule is registered with the ObjectMapper.
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper
Deprecated.
|
protected WrapperOverrideTypeModifier |
typeModifier
Deprecated.
|
| Constructor and Description |
|---|
JaxrsObjectMapperProvider()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
com.fasterxml.jackson.databind.ObjectMapper |
getContext(Class<?> type)
Deprecated.
|
protected WrapperOverrideTypeModifier typeModifier
protected com.fasterxml.jackson.databind.ObjectMapper mapper
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>Copyright © 2015. All Rights Reserved.