throws JsonMappingException CreatorCollector creators = new CreatorCollector(beanDesc, ctxt.getConfig()); AnnotationIntrospector intr = ctxt.getAnnotationIntrospector(); _addDeserializerConstructors(ctxt, beanDesc, vchecker, intr, creators, creatorDefs); return creators.constructValueInstantiator(ctxt);
if (type == String.class || type == CLASS_CHAR_SEQUENCE) { if (isCreator || isVisible) { creators.addStringCreator(ctor, isCreator); creators.addIntCreator(ctor, isCreator); creators.addLongCreator(ctor, isCreator); creators.addDoubleCreator(ctor, isCreator); creators.addBooleanCreator(ctor, isCreator); creators.addDelegatingCreator(ctor, isCreator, null, 0); return true;
if (!creators.hasDefaultCreator() || _hasCreatorAnnotation(ctxt, defaultCtor)) { creators.setDefaultCreator(defaultCtor); properties[0] = constructCreatorProperty(ctxt, beanDesc, name, 0, candidate.parameter(0), candidate.injection(0)); creators.addPropertyCreator(ctor, false, properties); } else { creators.addPropertyCreator(ctor, false, properties); continue; creators.addDelegatingCreator(ctor, false, properties, 0); continue; if (!creators.hasDefaultCreator()) { if (implicitCtors == null) { implicitCtors = new LinkedList<>(); if ((implicitCtors != null) && !creators.hasDelegatingCreator() && !creators.hasPropertyBasedCreator()) { _checkImplicitlyNamedConstructors(ctxt, beanDesc, vchecker, intr, creators, implicitCtors);
creators.addPropertyCreator(ctor, properties); return true; if (type == String.class) { if (isCreator || isVisible) { creators.addStringCreator(ctor); creators.addIntCreator(ctor); creators.addLongCreator(ctor); creators.addDoubleCreator(ctor); creators.addDelegatingCreator(ctor, null); return true;
creators.setDefaultCreator(factory); continue; creators.addPropertyCreator(factory, false, properties); } else if ((explicitNameCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(factory, false, properties, 0); } else { // otherwise, epic fail ctxt.reportBadTypeDefinition(beanDesc,
if (!creators.hasDefaultCreator() || intr.hasCreatorAnnotation(defaultCtor)) { creators.setDefaultCreator(defaultCtor); creators.addPropertyCreator(ctor, properties); } else if ((namedCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(ctor, properties); } else { // otherwise, epic fail throw new IllegalArgumentException("Argument #"+nonAnnotatedParam.getIndex()+" of constructor "+ctor+" has no property name annotation; must have name when multiple-paramater constructor annotated as Creator");
public void addStringCreator(AnnotatedWithParams creator, boolean explicit) { verifyNonDup(creator, C_STRING, explicit); }
@Deprecated // since 2.5 public void addIntCreator(AnnotatedWithParams creator) { addBooleanCreator(creator, false); } @Deprecated // since 2.5
CreatorCollector creators = new CreatorCollector(beanDesc, fixAccess); AnnotationIntrospector intr = ctxt.getAnnotationIntrospector(); ClassUtil.checkAndFixAccess(defaultCtor.getAnnotated()); creators.setDefaultConstructor(defaultCtor); _addDeserializerConstructors(ctxt, beanDesc, vchecker, intr, creators); return creators.constructValueInstantiator(config);
creators.addPropertyCreator(candidate.creator(), true, properties);
creators.addPropertyCreator(ctor, properties); } else if ((namedCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(ctor, properties); } else { // otherwise, epic fail throw new IllegalArgumentException("Argument #"+nonAnnotatedParam.getIndex()+" of constructor "+ctor+" has no property name annotation; must have name when multiple-paramater constructor annotated as Creator");
creators.addDelegatingCreator(candidate.creator(), true, properties, ix);
@Deprecated // since 2.5 public void addStringCreator(AnnotatedWithParams creator) { addStringCreator(creator, false); } @Deprecated // since 2.5
creators.addPropertyCreator(ctor, properties); return true; if (type == String.class) { if (isCreator || isVisible) { creators.addStringCreator(ctor); creators.addIntCreator(ctor); creators.addLongCreator(ctor); creators.addDoubleCreator(ctor); creators.addDelegatingCreator(ctor, null); return true;
creators.setDefaultCreator(factory); creators.addPropertyCreator(factory, properties); } else if ((namedCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(factory, properties); } else { // otherwise, epic fail throw new IllegalArgumentException("Argument #"+nonAnnotatedParam.getIndex()
if (!creators.hasDefaultCreator() || intr.hasCreatorAnnotation(defaultCtor)) { creators.setDefaultCreator(defaultCtor); properties[0] = constructCreatorProperty(ctxt, beanDesc, name, 0, arg, intr.findInjectableValueId(arg)); creators.addPropertyCreator(ctor, isCreator, properties); } else { creators.addPropertyCreator(ctor, isCreator, properties); } else if ((explicitNameCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(ctor, isCreator, properties); } else { // otherwise, epic fail
public void addIntCreator(AnnotatedWithParams creator, boolean explicit) { verifyNonDup(creator, C_INT, explicit); }
@Deprecated // since 2.5 public void addLongCreator(AnnotatedWithParams creator) { addBooleanCreator(creator, false); } @Deprecated // since 2.5
creators.addPropertyCreator(found, /*isCreator*/ false, foundProps); BasicBeanDescription bbd = (BasicBeanDescription) beanDesc;
creators.addPropertyCreator(factory, properties); } else if ((namedCount == 0) && ((injectCount + 1) == argCount)) { creators.addDelegatingCreator(factory, properties); } else { // otherwise, epic fail throw new IllegalArgumentException("Argument #"+nonAnnotatedParam.getIndex()