Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.util

public Class RootNameLookup

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedClass, com.fasterxml.jackson.databind.type.ClassKey

Helper class for caching resolved root names.

Field Summary

Modifier and TypeField and Description
protected transient LRUMap<ClassKey, PropertyName>
_rootNames

For efficient operation, let's try to minimize number of times we need to introspect root element name to use.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyName
findRootName(JavaType rootType, MapperConfig<?> config)

public PropertyName
findRootName(Class<?> rootType, MapperConfig<?> config)

protected Object
readResolve()

Need to override to reproduce cache object via constructor, instead of serialize/deserialize (since we do NOT want to retain cached data)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_rootNamesback to summary
protected transient LRUMap<ClassKey, PropertyName> _rootNames

For efficient operation, let's try to minimize number of times we need to introspect root element name to use.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

RootNameLookupback to summary
public RootNameLookup()

Method Detail

findRootNameback to summary
public PropertyName findRootName(JavaType rootType, MapperConfig<?> config)
findRootNameback to summary
public PropertyName findRootName(Class<?> rootType, MapperConfig<?> config)
readResolveback to summary
protected Object readResolve()

Need to override to reproduce cache object via constructor, instead of serialize/deserialize (since we do NOT want to retain cached data)