Class AccessorNamingStrategy.Provider
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AccessorNamingStrategy.Provider
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DefaultAccessorNamingStrategy.Provider
- Enclosing class:
- AccessorNamingStrategy
public abstract static class AccessorNamingStrategy.Provider extends java.lang.Object implements java.io.Serializable
Interface for provider (factory) for constructingAccessorNamingStrategy
for given type of deserialization target- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Provider()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract AccessorNamingStrategy
forBuilder(MapperConfig<?> config, AnnotatedClass builderClass, BeanDescription valueTypeDesc)
Factory method for creating strategy instance for POJOs that are deserialized using Builder type: in this case eventual target (value) type is different from type of "builder" object that is used by databinding to accumulate state.abstract AccessorNamingStrategy
forPOJO(MapperConfig<?> config, AnnotatedClass valueClass)
Factory method for creating strategy instance for a "regular" POJO, called if none of the other factory methods is applicable.abstract AccessorNamingStrategy
forRecord(MapperConfig<?> config, AnnotatedClass recordClass)
Factory method for creating strategy instance for specialjava.lang.Record
type (new in JDK 14).
-
-
-
Method Detail
-
forPOJO
public abstract AccessorNamingStrategy forPOJO(MapperConfig<?> config, AnnotatedClass valueClass)
Factory method for creating strategy instance for a "regular" POJO, called if none of the other factory methods is applicable.- Parameters:
config
- Current mapper configurationvalueClass
- Information about value type- Returns:
- Naming strategy instance to use
-
forBuilder
public abstract AccessorNamingStrategy forBuilder(MapperConfig<?> config, AnnotatedClass builderClass, BeanDescription valueTypeDesc)
Factory method for creating strategy instance for POJOs that are deserialized using Builder type: in this case eventual target (value) type is different from type of "builder" object that is used by databinding to accumulate state.- Parameters:
config
- Current mapper configurationbuilderClass
- Information about builder typevalueTypeDesc
- Information about the eventual target (value) type- Returns:
- Naming strategy instance to use
-
forRecord
public abstract AccessorNamingStrategy forRecord(MapperConfig<?> config, AnnotatedClass recordClass)
Factory method for creating strategy instance for specialjava.lang.Record
type (new in JDK 14).- Parameters:
config
- Current mapper configurationrecordClass
- Information about value type (of typejava.lang.Record
)- Returns:
- Naming strategy instance to use
-
-