/** * Property used to specify custom serializers. * * Configures value of {@code SERIALIZERS} property. * * Calling withSerializers more than once will merge the serializers with previous value. * * @param serializers * Custom serializers which affects serialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withSerializers(final JsonbSerializer... serializers) { mergeProperties(SERIALIZERS, serializers, JsonbSerializer.class); return this; }
/** * Property used to specify custom mapping adapters. * * Configures value of {@code ADAPTERS} property. * * Calling withAdapters more than once will merge the adapters with previous value. * * @param adapters * Custom mapping adapters which affects serialization and deserialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withAdapters(final JsonbAdapter... adapters) { mergeProperties(ADAPTERS, adapters, JsonbAdapter.class); return this; }
/** * Property used to specify custom deserializers. * * Configures value of {@code DESERIALIZERS} property. * * Calling withDeserializers more than once will merge the deserializers with previous value. * * @param deserializers * Custom deserializers which affects deserialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withDeserializers(final JsonbDeserializer... deserializers) { mergeProperties(DESERIALIZERS, deserializers, JsonbDeserializer.class); return this; }
/** * Property used to specify custom mapping adapters. * * Configures value of {@code ADAPTERS} property. * * Calling withAdapters more than once will merge the adapters with previous value. * * @param adapters * Custom mapping adapters which affects serialization and deserialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withAdapters(final JsonbAdapter... adapters) { mergeProperties(ADAPTERS, adapters, JsonbAdapter.class); return this; }
/** * Property used to specify custom serializers. * * Configures value of {@code SERIALIZERS} property. * * Calling withSerializers more than once will merge the serializers with previous value. * * @param serializers * Custom serializers which affects serialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withSerializers(final JsonbSerializer... serializers) { mergeProperties(SERIALIZERS, serializers, JsonbSerializer.class); return this; }
/** * Property used to specify custom deserializers. * * Configures value of {@code DESERIALIZERS} property. * * Calling withDeserializers more than once will merge the deserializers with previous value. * * @param deserializers * Custom deserializers which affects deserialization. * * @return This JsonbConfig instance. */ public final JsonbConfig withDeserializers(final JsonbDeserializer... deserializers) { mergeProperties(DESERIALIZERS, deserializers, JsonbDeserializer.class); return this; }