Top Fields Constructors Methods
tools.jackson.module.blackbird.ser

public Class BBSerializerModifier

extends ValueSerializerModifier
Class Inheritance
Imports
java.lang.invoke.LambdaMetafactory, .MethodHandle, .MethodHandles, .MethodHandles.Lookup, java.lang.reflect.Member, .Method, .Modifier, java.util.*, java.util.function.Function, .ToIntFunction, .ToLongFunction, .UnaryOperator, tools.jackson.databind.*, tools.jackson.databind.annotation.JacksonStdImpl, tools.jackson.databind.introspect.AnnotatedMember, .AnnotatedMethod, tools.jackson.databind.ser.*, tools.jackson.module.blackbird.util.ReflectionHack, .Unchecked

Field Summary

Modifier and TypeField and Description
private final UnaryOperator<MethodHandles.Lookup>
private final Function<Class<?>, MethodHandles.Lookup>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<BeanPropertyWriter>
changeProperties(SerializationConfig config, BeanDescription.Supplier beanDescRef, List<BeanPropertyWriter> beanProperties)

Overrides tools.jackson.databind.ser.ValueSerializerModifier.changeProperties.

Method called by BeanSerializerFactory with tentative set of discovered properties.

protected void
protected void
findProperties(Class<?> beanClass, SerializationConfig config, List<BeanPropertyWriter> beanProperties)

Inherited from tools.jackson.databind.ser.ValueSerializerModifier:
modifyArraySerializermodifyCollectionLikeSerializermodifyCollectionSerializermodifyEnumSerializermodifyKeySerializermodifyMapLikeSerializermodifyMapSerializermodifySerializerorderPropertiesupdateBuilder

Field Detail

_accessGrantback to summary
private final UnaryOperator<MethodHandles.Lookup> _accessGrant
_lookupsback to summary
private final Function<Class<?>, MethodHandles.Lookup> _lookups
serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.ser.ValueSerializerModifier.serialVersionUID.

Constructor Detail

BBSerializerModifierback to summary
public BBSerializerModifier(Function<Class<?>, MethodHandles.Lookup> lookups, UnaryOperator<MethodHandles.Lookup> accessGrant)

Method Detail

changePropertiesback to summary
public List<BeanPropertyWriter> changeProperties(SerializationConfig config, BeanDescription.Supplier beanDescRef, List<BeanPropertyWriter> beanProperties)

Overrides tools.jackson.databind.ser.ValueSerializerModifier.changeProperties.

Doc from tools.jackson.databind.ser.ValueSerializerModifier.changeProperties.

Method called by BeanSerializerFactory with tentative set of discovered properties. Implementations can add, remove or replace any of passed properties. Properties List passed as argument is modifiable, and returned List must likewise be modifiable as it may be passed to multiple registered modifiers.

Annotations
@Override
createPropertyback to summary
protected void createProperty(ListIterator<BeanPropertyWriter> it, MethodHandles.Lookup lookup, SerializationConfig config) throws Throwable
findPropertiesback to summary
protected void findProperties(Class<?> beanClass, SerializationConfig config, List<BeanPropertyWriter> beanProperties)