public static class BeanSerializerFactory.ConfigImpl extends SerializerFactory.Config
Modifier and Type | Field and Description |
---|---|
protected Serializers[] |
_additionalKeySerializers |
protected Serializers[] |
_additionalSerializers
List of providers for additional serializers, checked before considering default
basic or bean serialializers.
|
protected BeanSerializerModifier[] |
_modifiers
List of modifiers that can change the way
BeanSerializer instances
are configured and constructed. |
protected static BeanSerializerModifier[] |
NO_MODIFIERS |
protected static Serializers[] |
NO_SERIALIZERS
Constant for empty
Serializers array (which by definition
is stateless and reusable) |
Modifier | Constructor and Description |
---|---|
|
BeanSerializerFactory.ConfigImpl() |
protected |
BeanSerializerFactory.ConfigImpl(Serializers[] allAdditionalSerializers,
Serializers[] allAdditionalKeySerializers,
BeanSerializerModifier[] modifiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasKeySerializers() |
boolean |
hasSerializerModifiers() |
boolean |
hasSerializers() |
Iterable<Serializers> |
keySerializers() |
Iterable<BeanSerializerModifier> |
serializerModifiers() |
Iterable<Serializers> |
serializers() |
SerializerFactory.Config |
withAdditionalKeySerializers(Serializers additional) |
SerializerFactory.Config |
withAdditionalSerializers(Serializers additional)
Method for creating a new instance with additional serializer provider.
|
SerializerFactory.Config |
withSerializerModifier(BeanSerializerModifier modifier)
Method for creating a new instance with additional bean serializer modifier.
|
protected static final Serializers[] NO_SERIALIZERS
Serializers
array (which by definition
is stateless and reusable)protected static final BeanSerializerModifier[] NO_MODIFIERS
protected final Serializers[] _additionalSerializers
protected final Serializers[] _additionalKeySerializers
protected final BeanSerializerModifier[] _modifiers
BeanSerializer
instances
are configured and constructed.public BeanSerializerFactory.ConfigImpl()
protected BeanSerializerFactory.ConfigImpl(Serializers[] allAdditionalSerializers, Serializers[] allAdditionalKeySerializers, BeanSerializerModifier[] modifiers)
public SerializerFactory.Config withAdditionalSerializers(Serializers additional)
SerializerFactory.Config
withAdditionalSerializers
in class SerializerFactory.Config
public SerializerFactory.Config withAdditionalKeySerializers(Serializers additional)
withAdditionalKeySerializers
in class SerializerFactory.Config
public SerializerFactory.Config withSerializerModifier(BeanSerializerModifier modifier)
SerializerFactory.Config
withSerializerModifier
in class SerializerFactory.Config
public boolean hasSerializers()
hasSerializers
in class SerializerFactory.Config
public boolean hasKeySerializers()
hasKeySerializers
in class SerializerFactory.Config
public boolean hasSerializerModifiers()
hasSerializerModifiers
in class SerializerFactory.Config
public Iterable<Serializers> serializers()
serializers
in class SerializerFactory.Config
public Iterable<Serializers> keySerializers()
keySerializers
in class SerializerFactory.Config
public Iterable<BeanSerializerModifier> serializerModifiers()
serializerModifiers
in class SerializerFactory.Config