public static class BeanSerializerFactory.ConfigImpl extends SerializerFactory.Config
限定符和类型 | 字段和说明 |
---|---|
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) |
限定符 | 构造器和说明 |
---|---|
|
BeanSerializerFactory.ConfigImpl() |
protected |
BeanSerializerFactory.ConfigImpl(Serializers[] allAdditionalSerializers,
Serializers[] allAdditionalKeySerializers,
BeanSerializerModifier[] modifiers) |
限定符和类型 | 方法和说明 |
---|---|
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
public SerializerFactory.Config withAdditionalKeySerializers(Serializers additional)
public SerializerFactory.Config withSerializerModifier(BeanSerializerModifier modifier)
SerializerFactory.Config
public boolean hasSerializers()
hasSerializers
在类中 SerializerFactory.Config
public boolean hasKeySerializers()
public boolean hasSerializerModifiers()
public Iterable<Serializers> serializers()
serializers
在类中 SerializerFactory.Config
public Iterable<Serializers> keySerializers()
keySerializers
在类中 SerializerFactory.Config
public Iterable<BeanSerializerModifier> serializerModifiers()