クラス GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B は tools.jackson.databind.cfg.MapperBuilder<? を継承し、tools.jackson.databind.ObjectMapper、? は tools.jackson.databind.cfg.MapperBuilder<?、?>>> を継承します。
java.lang.ObjectSE
org.springframework.data.redis.serializer.GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B>
- 型パラメーター:
B-MapperBuilderの型。
- 含まれているクラス:
GenericJacksonJsonRedisSerializer
public static class GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B extends tools.jackson.databind.cfg.MapperBuilder<? extends tools.jackson.databind.ObjectMapper, ? extends tools.jackson.databind.cfg.MapperBuilder<?,?>>>
extends ObjectSE
GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder は JsonMapper.Builder をラップし、GenericJacksonJsonRedisSerializer で使用される結果の ObjectMapper の NullValue 直列化戦略や、潜在的なオブジェクト /-reader および -writer 設定などのアスペクトを構成するための専用メソッドを提供します。- 導入:
- 4.0
- 作成者:
- Christoph Strobl
方法の概要
修飾子と型メソッド説明build()構成された設定を使用して新しいGenericJacksonJsonRedisSerializerインスタンスを構築します。customize(ConsumerSE<B> mapperBuilderCustomizer) enableDefaultTyping(tools.jackson.databind.jsontype.PolymorphicTypeValidator typeValidator) 指定されたPolymorphicTypeValidatorを使用してdefault typingを有効にします。マッパーのデフォルトの型 プロパティを使用して、Spring キャッシュNullValueを直列化できるStdSerializerを登録します。enableSpringCacheNullValueSupport(StringSE typePropertyName) 指定された型プロパティ名を使用して、Spring キャッシュNullValueを直列化できるStdSerializerを登録します。型検証制約なしでdefault typingを有効にします。reader(JacksonObjectReader reader) JacksonObjectReaderを構成します。typePropertyName(StringSE typePropertyName) デフォルトの型指定とenableSpringCacheNullValueSupport()に使用される型プロパティ名を構成します。typeValidator(tools.jackson.databind.jsontype.PolymorphicTypeValidator typeValidator) デシリアライズ中に多態的型を検証するためのPolymorphicTypeValidatorを提供します。writer(JacksonObjectWriter writer) JacksonObjectWriterを構成します。
方法の詳細
enableSpringCacheNullValueSupport
@Contract("-> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> enableSpringCacheNullValueSupport()マッパーのデフォルトの型プロパティを使用して、Spring キャッシュNullValueを直列化できるStdSerializerを登録します。default typingを適切にアクティブ化してください。- 戻り値:
- this。
enableSpringCacheNullValueSupport
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> enableSpringCacheNullValueSupport(StringSE typePropertyName) 指定された型プロパティ名を使用して、Spring CacheNullValueを直列化できるStdSerializerを登録します。default typingを適切にアクティブ化してください。- 戻り値:
thisビルダー。
enableUnsafeDefaultTyping
@Contract("-> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> enableUnsafeDefaultTyping()型検証制約なしでdefault typingを有効にします。警告 :
PolymorphicTypeValidatorデシリアライゼーションの制限がなければ、信頼できないソースから読み取る際に任意のコードが実行される脆弱性が存在します。- 戻り値:
thisビルダー。- 関連事項:
enableDefaultTyping
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> enableDefaultTyping(tools.jackson.databind.jsontype.PolymorphicTypeValidator typeValidator) 指定されたPolymorphicTypeValidatorを使用してdefault typingを有効にします。- 戻り値:
thisビルダー。
typeValidator
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> typeValidator(tools.jackson.databind.jsontype.PolymorphicTypeValidator typeValidator) デシリアライズ中に多態的型を検証するためのPolymorphicTypeValidatorを提供します。- パラメーター:
typeValidator- 使用するバリデーター。デフォルトでは、すべての型を許可する permissive バリデーターになります。- 戻り値:
thisビルダー。
typePropertyName
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> typePropertyName(StringSE typePropertyName) デフォルトの型指定とenableSpringCacheNullValueSupport()に使用される型プロパティ名を構成します。- 戻り値:
thisビルダー。
writer
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> writer(JacksonObjectWriter writer) JacksonObjectWriterを構成します。- パラメーター:
writer- null であってはなりません。- 戻り値:
thisビルダー。
reader
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> reader(JacksonObjectReader reader) JacksonObjectReaderを構成します。- パラメーター:
reader- null であってはなりません。- 戻り値:
thisビルダー。
customize
@Contract("_ -> this") public GenericJacksonJsonRedisSerializer.GenericJacksonJsonRedisSerializerBuilder<B> customize(ConsumerSE<B> mapperBuilderCustomizer) - パラメーター:
mapperBuilderCustomizer-ObjectMapperビルダーに適用するコンフィギュレーター。- 戻り値:
thisビルダー。
build
構成された設定を使用して新しいGenericJacksonJsonRedisSerializerインスタンスを構築します。- 戻り値:
- 新しい
GenericJacksonJsonRedisSerializerインスタンス。