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. UsesPropertyNamingStrategy
to 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.String
nameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
java.lang.String
nameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
void
onApplicationEvent(ObjectMapperConfigured event)
-
-
-
Method Detail
-
nameForSerialization
public java.lang.String nameForSerialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
- Specified by:
nameForSerialization
in interfaceBeanPropertyNamingStrategy
-
nameForDeserialization
public java.lang.String nameForDeserialization(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanProperty)
- Specified by:
nameForDeserialization
in interfaceBeanPropertyNamingStrategy
-
onApplicationEvent
public void onApplicationEvent(ObjectMapperConfigured event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ObjectMapperConfigured>
-
-