@@ -42,9 +42,9 @@ public abstract class AnnotationIntrospector
4242 implements Versioned , java .io .Serializable
4343{
4444 /*
45- /**********************************************************
45+ /**********************************************************************
4646 /* Helper types
47- /**********************************************************
47+ /**********************************************************************
4848 */
4949
5050 /**
@@ -92,9 +92,9 @@ public ReferenceProperty(Type t, String n) {
9292 }
9393
9494 /*
95- /**********************************************************
95+ /**********************************************************************
9696 /* Factory methods
97- /**********************************************************
97+ /**********************************************************************
9898 */
9999
100100 /**
@@ -111,9 +111,9 @@ public static AnnotationIntrospector pair(AnnotationIntrospector a1, AnnotationI
111111 }
112112
113113 /*
114- /**********************************************************
114+ /**********************************************************************
115115 /* Access to possibly chained introspectors
116- /**********************************************************
116+ /**********************************************************************
117117 */
118118
119119 /**
@@ -147,18 +147,18 @@ public Collection<AnnotationIntrospector> allIntrospectors(Collection<Annotation
147147 }
148148
149149 /*
150- /**********************************************************
150+ /**********************************************************************
151151 /* Default Versioned impl
152- /**********************************************************
152+ /**********************************************************************
153153 */
154154
155155 @ Override
156156 public abstract Version version ();
157157
158158 /*
159- /**********************************************************
159+ /**********************************************************************
160160 /* Meta-annotations (annotations for annotation types)
161- /**********************************************************
161+ /**********************************************************************
162162 */
163163
164164 /**
@@ -171,9 +171,9 @@ public boolean isAnnotationBundle(Annotation ann) {
171171 }
172172
173173 /*
174- /**********************************************************
174+ /**********************************************************************
175175 /* Annotations for Object Id handling
176- /**********************************************************
176+ /**********************************************************************
177177 */
178178
179179 /**
@@ -196,9 +196,9 @@ public ObjectIdInfo findObjectReferenceInfo(Annotated ann, ObjectIdInfo objectId
196196 }
197197
198198 /*
199- /**********************************************************
199+ /**********************************************************************
200200 /* General class annotations
201- /**********************************************************
201+ /**********************************************************************
202202 */
203203
204204 /**
@@ -269,9 +269,9 @@ public JsonIgnoreProperties.Value findPropertyIgnorals(Annotated ac)
269269 public String findClassDescription (AnnotatedClass ac ) { return null ; }
270270
271271 /*
272- /**********************************************************
272+ /**********************************************************************
273273 /* Property auto-detection
274- /**********************************************************
274+ /**********************************************************************
275275 */
276276
277277 /**
@@ -286,11 +286,23 @@ public VisibilityChecker findAutoDetectVisibility(AnnotatedClass ac, VisibilityC
286286 }
287287
288288 /*
289- /**********************************************************
289+ /**********************************************************************
290290 /* Annotations for Polymorphic type handling
291- /**********************************************************
291+ /**********************************************************************
292292 */
293-
293+
294+ /**
295+ * Method for checking whether given Class or Property Accessor specifies
296+ * polymorphic type-handling information, to indicate need for polymorphic
297+ * handling.
298+ *
299+ * @since 3.0
300+ */
301+ public JsonTypeInfo .Value findPolymorphicTypeInfo (MapperConfig <?> config ,
302+ Annotated ann ) {
303+ return null ;
304+ }
305+
294306 /**
295307 * Method for checking if given class has annotations that indicate
296308 * that specific type resolver is to be used for handling instances.
@@ -300,13 +312,12 @@ public VisibilityChecker findAutoDetectVisibility(AnnotatedClass ac, VisibilityC
300312 * {@link #findSubtypes}
301313 *
302314 * @param config Configuration settings in effect (for serialization or deserialization)
303- * @param ac Annotated class to check for annotations
304315 * @param baseType Base java type of value for which resolver is to be found
305316 *
306317 * @return Type resolver builder for given type, if one found; null if none
307318 */
308319 public TypeResolverBuilder <?> findTypeResolver (MapperConfig <?> config ,
309- AnnotatedClass ac , JavaType baseType ) {
320+ Annotated ann , JavaType baseType , JsonTypeInfo . Value typeInfo ) {
310321 return null ;
311322 }
312323
@@ -319,14 +330,13 @@ public TypeResolverBuilder<?> findTypeResolver(MapperConfig<?> config,
319330 * {@link #findSubtypes}
320331 *
321332 * @param config Configuration settings in effect (for serialization or deserialization)
322- * @param am Annotated member (field or method) to check for annotations
323333 * @param baseType Base java type of property for which resolver is to be found
324334 *
325335 * @return Type resolver builder for properties of given entity, if one found;
326336 * null if none
327337 */
328338 public TypeResolverBuilder <?> findPropertyTypeResolver (MapperConfig <?> config ,
329- AnnotatedMember am , JavaType baseType ) {
339+ Annotated ann , JavaType baseType , JsonTypeInfo . Value typeInfo ) {
330340 return null ;
331341 }
332342
@@ -341,14 +351,13 @@ public TypeResolverBuilder<?> findPropertyTypeResolver(MapperConfig<?> config,
341351 * {@link #findSubtypes}
342352 *
343353 * @param config Configuration settings in effect (for serialization or deserialization)
344- * @param am Annotated member (field or method) to check for annotations
345354 * @param containerType Type of property for which resolver is to be found (must be a container type)
346355 *
347356 * @return Type resolver builder for values contained in properties of given entity,
348357 * if one found; null if none
349358 */
350359 public TypeResolverBuilder <?> findPropertyContentTypeResolver (MapperConfig <?> config ,
351- AnnotatedMember am , JavaType containerType ) {
360+ Annotated ann , JavaType containerType , JsonTypeInfo . Value typeInfo ) {
352361 return null ;
353362 }
354363
0 commit comments