com.fasterxml.jackson.databind.deser.impl

Class CreatorCollector



  • public class CreatorCollector
    extends Object
    Container class for storing information on creators (based on annotations, visibility), to be able to build actual instantiator later on.
    • Method Detail

      • setDefaultCreator

        public void setDefaultCreator(AnnotatedWithParams creator)
        Method called to indicate the default creator: no-arguments constructor or factory method that is called to instantiate a value before populating it with data. Default creator is only used if no other creators are indicated.
        Parameters:
        creator - Creator method; no-arguments constructor or static factory method.
      • addStringCreator

        public void addStringCreator(AnnotatedWithParams creator,
                            boolean explicit)
      • addDoubleCreator

        public void addDoubleCreator(AnnotatedWithParams creator,
                            boolean explicit)
      • addBooleanCreator

        public void addBooleanCreator(AnnotatedWithParams creator,
                             boolean explicit)
      • hasDefaultCreator

        public boolean hasDefaultCreator()
        Since:
        2.1
      • hasDelegatingCreator

        public boolean hasDelegatingCreator()
        Since:
        2.6
      • hasPropertyBasedCreator

        public boolean hasPropertyBasedCreator()
        Since:
        2.6
      • verifyNonDup

        protected boolean verifyNonDup(AnnotatedWithParams newOne,
                           int typeIndex,
                           boolean explicit)
        Returns:
        True if specified Creator is to be used
      • _isEnumValueOf

        protected boolean _isEnumValueOf(AnnotatedWithParams creator)
        Helper method for recognizing `Enum.valueOf()` factory method
        Since:
        2.8.1

Copyright © 2008–2018 FasterXML. All rights reserved.