/** * Create a {@code SerializationDelegate} with the given serializer/deserializer. * @param serializer the {@link Serializer} to use (never {@code null)} * @param deserializer the {@link Deserializer} to use (never {@code null)} */ public SerializationDelegate(Serializer<Object> serializer, Deserializer<Object> deserializer) { Assert.notNull(serializer, "Serializer must not be null"); Assert.notNull(deserializer, "Deserializer must not be null"); this.serializer = serializer; this.deserializer = deserializer; }
public SpringSerde(Serializer<T> serializer, Deserializer<T> deserializer) { Assert.notNull(serializer, "Serializer cannot be null."); Assert.notNull(deserializer, "Deserializer cannot be null."); this.serializer = serializer; this.deserializer = deserializer; }
/** * Create a {@code SerializingConverter} that delegates to the provided {@link Serializer}. */ public SerializingConverter(Serializer<Object> serializer) { Assert.notNull(serializer, "Serializer must not be null"); this.serializer = serializer; }
/** * Create a SerializingConverter that delegates to the provided {@link Serializer} */ public SerializingConverter(Serializer<Object> serializer) { Assert.notNull(serializer, "Serializer must not be null"); this.serializer = serializer; }