Top Fields Constructors Methods
com.fasterxml.jackson.module.blackbird.ser

public Class BBSerializerModifier

extends BeanSerializerModifier
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, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.annotation.JacksonStdImpl, com.fasterxml.jackson.databind.introspect.AnnotatedMember, .AnnotatedMethod, com.fasterxml.jackson.databind.ser.*, com.fasterxml.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 beanDesc, List<BeanPropertyWriter> beanProperties)

Overrides com.fasterxml.jackson.databind.ser.BeanSerializerModifier.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 com.fasterxml.jackson.databind.ser.BeanSerializerModifier:
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 com.fasterxml.jackson.databind.ser.BeanSerializerModifier.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 beanDesc, List<BeanPropertyWriter> beanProperties)

Overrides com.fasterxml.jackson.databind.ser.BeanSerializerModifier.changeProperties.

Doc from com.fasterxml.jackson.databind.ser.BeanSerializerModifier.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)