Class ObjectMapperBeanPropertyNamingStrategy
- java.lang.Object
-
- springfox.documentation.schema.property.ObjectMapperBeanPropertyNamingStrategy
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.context.ApplicationListener<ObjectMapperConfigured>,BeanPropertyNamingStrategy
@Component public class ObjectMapperBeanPropertyNamingStrategy extends java.lang.Object implements BeanPropertyNamingStrategy, org.springframework.context.ApplicationListener<ObjectMapperConfigured>
BeanPropertyNamingStrategy based on ObjectMapper naming strategy. UsesPropertyNamingStrategyto name. In case it cannot get information from property's getter or field, it returns the same current name.
-
-
Constructor Summary
Constructors Constructor Description ObjectMapperBeanPropertyNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringnameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)java.lang.StringnameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)voidonApplicationEvent(ObjectMapperConfigured event)
-
-
-
Method Detail
-
nameForSerialization
public java.lang.String nameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
- Specified by:
nameForSerializationin interfaceBeanPropertyNamingStrategy
-
nameForDeserialization
public java.lang.String nameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
- Specified by:
nameForDeserializationin interfaceBeanPropertyNamingStrategy
-
onApplicationEvent
public void onApplicationEvent(ObjectMapperConfigured event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<ObjectMapperConfigured>
-
-