@Override public AnnotatedConstructor withAnnotations(AnnotationMap ann) { return new AnnotatedConstructor(_constructor, ann, _paramAnnotations); }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected MapDeserializer(JavaType mapType, Constructor<Map<Object,Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) { super(Map.class); _mapType = mapType; _keyDeserializer = keyDeser; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, mapType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _hasDefaultCreator = (defCtor != null); _valueInstantiator = inst; }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected CollectionDeserializer(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) { super(collectionType.getRawClass()); _collectionType = collectionType; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, collectionType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _valueInstantiator = inst; }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) return new AnnotatedConstructor(ctor, _emptyAnnotationMap(), _emptyAnnotationMaps(ctor.getParameterTypes().length)); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), null); resolvedAnnotations = _collectRelevantAnnotations(paramAnns); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), resolvedAnnotations);
@Override public AnnotatedConstructor withAnnotations(AnnotationMap ann) { return new AnnotatedConstructor(_constructor, ann, _paramAnnotations); }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected MapDeserializer(JavaType mapType, Constructor<Map<Object,Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) { super(Map.class); _mapType = mapType; _keyDeserializer = keyDeser; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, mapType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _hasDefaultCreator = (defCtor != null); _valueInstantiator = inst; }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected CollectionDeserializer(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) { super(collectionType.getRawClass()); _collectionType = collectionType; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, collectionType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _valueInstantiator = inst; }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) return new AnnotatedConstructor(ctor, _emptyAnnotationMap(), _emptyAnnotationMaps(ctor.getParameterTypes().length)); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), null); resolvedAnnotations = _collectRelevantAnnotations(paramAnns); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), resolvedAnnotations);
@Override public AnnotatedConstructor withAnnotations(AnnotationMap ann) { return new AnnotatedConstructor(_constructor, ann, _paramAnnotations); }
@Override public AnnotatedConstructor withAnnotations(AnnotationMap ann) { return new AnnotatedConstructor(_constructor, ann, _paramAnnotations); }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) { if (_annotationIntrospector == null) { // when annotation processing is disabled return new AnnotatedConstructor(ctor, _emptyAnnotationMap(), _emptyAnnotationMaps(ctor.getParameterTypes().length)); } return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), defaultCtor ? null : _collectRelevantAnnotations(ctor.getParameterAnnotations())); }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) { if (_annotationIntrospector == null) { // when annotation processing is disabled return new AnnotatedConstructor(ctor, _emptyAnnotationMap(), _emptyAnnotationMaps(ctor.getParameterTypes().length)); } return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), defaultCtor ? null : _collectRelevantAnnotations(ctor.getParameterAnnotations())); }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) { return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), defaultCtor ? null : _collectRelevantAnnotations(ctor.getParameterAnnotations())); }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected MapDeserializer(JavaType mapType, Constructor<Map<Object,Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) { super(Map.class); _mapType = mapType; _keyDeserializer = keyDeser; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, mapType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _hasDefaultCreator = (defCtor != null); _valueInstantiator = inst; }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected MapDeserializer(JavaType mapType, Constructor<Map<Object,Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) { super(Map.class); _mapType = mapType; _keyDeserializer = keyDeser; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, mapType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _hasDefaultCreator = (defCtor != null); _valueInstantiator = inst; }
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected CollectionDeserializer(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) { super(collectionType.getRawClass()); _collectionType = collectionType; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, collectionType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _valueInstantiator = inst; }
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor) return new AnnotatedConstructor(ctor, _emptyAnnotationMap(), _emptyAnnotationMaps(ctor.getParameterTypes().length)); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), null); resolvedAnnotations = _collectRelevantAnnotations(paramAnns); return new AnnotatedConstructor(ctor, _collectRelevantAnnotations(ctor.getDeclaredAnnotations()), resolvedAnnotations);
/** * @deprecated Since 1.9, use variant that takes ValueInstantiator */ @Deprecated protected CollectionDeserializer(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) { super(collectionType.getRawClass()); _collectionType = collectionType; _valueDeserializer = valueDeser; _valueTypeDeserializer = valueTypeDeser; // not super-clean, but has to do... StdValueInstantiator inst = new StdValueInstantiator(null, collectionType); if (defCtor != null) { AnnotatedConstructor aCtor = new AnnotatedConstructor(defCtor, null, null); inst.configureFromObjectSettings(aCtor, null, null, null, null); } _valueInstantiator = inst; }