Class Deserializers.Base

java.lang.Object
tools.jackson.databind.deser.Deserializers.Base
All Implemented Interfaces:
Deserializers
Direct Known Subclasses:
SimpleDeserializers
Enclosing interface:
Deserializers

public abstract static class Deserializers.Base extends Object implements Deserializers
Basic Deserializers implementation that implements all methods but provides no deserializers. Its main purpose is to serve as a base class so that sub-classes only need to override methods they need, as most of the time some of methods are not needed (especially enumeration and array deserializers are very rarely overridden).
  • Constructor Details

    • Base

      public Base()
  • Method Details

    • hasDeserializerFor

      public abstract boolean hasDeserializerFor(DeserializationConfig config, Class<?> valueType)
      Description copied from interface: Deserializers
      Method that may be called to check whether this deserializer provider would provide deserializer for values of given type, without attempting to construct (and possibly fail in some cases) actual deserializer. Mostly needed to support validation of polymorphic type ids.

      Note: implementations should take care NOT to claim supporting types that they do not recognize as this could to incorrect assumption of safe support by caller.

      Specified by:
      hasDeserializerFor in interface Deserializers