Skip to content

Commit

Permalink
Merge branch '2.18' into 2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 26, 2025
2 parents 3f6fbb4 + be92a6e commit 1c950b6
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ public abstract WritableObjectId findObjectId(Object forPojo,
* Note that serializers produced should NOT handle polymorphic serialization
* aspects; separate {@link TypeSerializer} is to be constructed by caller
* if and as necessary.
*<p>
* Note: this call will also contextualize serializer (call
* {@code serializer.createContextual()}) before returning it.
*
* @throws JsonMappingException if there are fatal problems with
* accessing suitable serializer; including that of not
Expand Down Expand Up @@ -603,7 +606,8 @@ public JsonSerializer<Object> findValueSerializer(Class<?> valueType, BeanProper
* This is necessary for accurate handling of external type information,
* to handle polymorphic types.
*<p>
* Note: this call will also contextualize serializer before returning it.
* Note: this call will also contextualize serializer (call
* {@code serializer.createContextual()}) before returning it.
*
* @param property When creating secondary serializers, property for which
* serializer is needed: annotations of the property (or bean that contains it)
Expand Down Expand Up @@ -635,9 +639,10 @@ public JsonSerializer<Object> findValueSerializer(JavaType valueType, BeanProper
}

/**
* Method variant used when we do NOT want contextualization to happen; it will need
* to be handled at a later point, but caller wants to be able to do that
* as needed; sometimes to avoid infinite loops
* Serializer lookup variant used when we do NOT want contextualization to happen;
* while contextualization MUST be handled at some point (many serializers will not be
* in usable state before contextualization), but caller wants to be able to do that
* later; sometimes to avoid infinite loops.
*
* @since 2.5
*/
Expand All @@ -664,9 +669,10 @@ public JsonSerializer<Object> findValueSerializer(Class<?> valueType) throws Jso
}

/**
* Method variant used when we do NOT want contextualization to happen; it will need
* to be handled at a later point, but caller wants to be able to do that
* as needed; sometimes to avoid infinite loops
* Serializer lookup variant used when we do NOT want contextualization to happen;
* while contextualization MUST be handled at some point (many serializers will not be
* in usable state before contextualization), but caller wants to be able to do that
* later; sometimes to avoid infinite loops.
*
* @since 2.5
*/
Expand Down Expand Up @@ -698,8 +704,10 @@ public JsonSerializer<Object> findValueSerializer(JavaType valueType)
* certain that this is the primary property value serializer.
*
* @param valueType Type of values to serialize
* @param property Property that is being handled; will never be null, and its
* type has to match <code>valueType</code> parameter.
* @param property Property that directly refers to value being serialized (optional,
* may be {@code null} for root level serializers).
* Should not be null if property is known. If not null,
* its type must match {@code valueType} argument.
*
* @since 2.3
*/
Expand Down

0 comments on commit 1c950b6

Please sign in to comment.