Class JDKValueInstantiators.JDKValueInstantiator

java.lang.Object
tools.jackson.databind.deser.ValueInstantiator
tools.jackson.databind.deser.ValueInstantiator.Base
tools.jackson.databind.deser.jdk.JDKValueInstantiators.JDKValueInstantiator
Direct Known Subclasses:
JDKValueInstantiators.ArrayListInstantiator, JDKValueInstantiators.ConcurrentHashMapInstantiator, JDKValueInstantiators.ConstantValueInstantiator, JDKValueInstantiators.HashMapInstantiator, JDKValueInstantiators.HashSetInstantiator, JDKValueInstantiators.LinkedHashMapInstantiator, JDKValueInstantiators.LinkedHashSetInstantiator, JDKValueInstantiators.LinkedListInstantiator, JDKValueInstantiators.PropertiesInstantiator, JDKValueInstantiators.TreeMapInstantiator, JDKValueInstantiators.TreeSetInstantiator
Enclosing class:
JDKValueInstantiators

abstract static class JDKValueInstantiators.JDKValueInstantiator extends ValueInstantiator.Base
  • Constructor Details

    • JDKValueInstantiator

      public JDKValueInstantiator(Class<?> type)
  • Method Details

    • canInstantiate

      public final boolean canInstantiate()
      Description copied from class: ValueInstantiator
      Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.
      Overrides:
      canInstantiate in class ValueInstantiator
    • canCreateUsingDefault

      public final boolean canCreateUsingDefault()
      Description copied from class: ValueInstantiator
      Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
      Overrides:
      canCreateUsingDefault in class ValueInstantiator
    • createUsingDefault

      public abstract Object createUsingDefault(DeserializationContext ctxt)
      Description copied from class: ValueInstantiator
      Method called to create value instance from a JSON value when no data needs to passed to creator (constructor, factory method); typically this will call the default constructor of the value object. It will only be used if more specific creator methods are not applicable; hence "default".

      This method is called if ValueInstantiator.getFromObjectArguments(DeserializationConfig) returns null or empty List.

      Overrides:
      createUsingDefault in class ValueInstantiator