@Component public class ObjectMapperBeanPropertyNamingStrategy extends java.lang.Object implements BeanPropertyNamingStrategy, org.springframework.context.ApplicationListener<ObjectMapperConfigured>
PropertyNamingStrategy to name.
In case it cannot get information from property's getter or field, it returns the same current name.| Constructor and Description |
|---|
ObjectMapperBeanPropertyNamingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
nameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty) |
java.lang.String |
nameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty) |
void |
onApplicationEvent(ObjectMapperConfigured event) |
public ObjectMapperBeanPropertyNamingStrategy()
public java.lang.String nameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
nameForSerialization in interface BeanPropertyNamingStrategypublic java.lang.String nameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
nameForDeserialization in interface BeanPropertyNamingStrategypublic void onApplicationEvent(ObjectMapperConfigured event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<ObjectMapperConfigured>