public abstract static class AccessorNamingStrategy.Provider extends Object implements Serializable
AccessorNamingStrategy
for given type of deserialization targetConstructor and Description |
---|
Provider() |
Modifier and Type | Method and 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 special
java.lang.Record
type (new in JDK 14). |
public abstract AccessorNamingStrategy forPOJO(MapperConfig<?> config, AnnotatedClass valueClass)
config
- Current mapper configurationvalueClass
- Information about value typepublic abstract AccessorNamingStrategy forBuilder(MapperConfig<?> config, AnnotatedClass builderClass, BeanDescription valueTypeDesc)
config
- Current mapper configurationbuilderClass
- Information about builder typevalueTypeDesc
- Information about the eventual target (value) typepublic abstract AccessorNamingStrategy forRecord(MapperConfig<?> config, AnnotatedClass recordClass)
java.lang.Record
type (new in JDK 14).config
- Current mapper configurationrecordClass
- Information about value type (of type java.lang.Record
)Copyright © 2008–2021 FasterXML. All rights reserved.