Class RootNameLookup

java.lang.Object
tools.jackson.databind.util.RootNameLookup
All Implemented Interfaces:
Serializable

public class RootNameLookup extends Object implements Serializable
Helper class for caching resolved root names.
See Also:
  • Field Details

    • _rootNames

      protected transient LookupCache<ClassKey,PropertyName> _rootNames
      For efficient operation, let's try to minimize number of times we need to introspect root element name to use.
  • Constructor Details

    • RootNameLookup

      public RootNameLookup()
  • Method Details

    • findRootName

      public PropertyName findRootName(DatabindContext ctxt, JavaType rootType)
    • findRootName

      public PropertyName findRootName(DatabindContext ctxt, Class<?> rootType)
    • readResolve

      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)