Closed
Description
Rob Winch opened DATAREDIS-427 and commented
Currently JdkSerializationRedisSerializer
does not allow injecting the deserializer
. This means that a custom ClassLoader cannot be used. Ideally I should be able to do something like this:
JdkSerializationRedisSerializer redisSerializer = new JdkSerializationRedisSerializer();
redisSerializer.setDeserializer(new DeserializingConverter(new DefaultDeserializer(classLoader)));
Constructor injection would also be acceptable.
Relates to SPR-13409 and spring-boot/issues/3805
UPDATE Ideally the fix will not require Spring 4.2.x so that we can make this possible for older versions of Spring. Since Spring core will not backport this, this can be done by providing a copy of DefaultDeserializer in Spring Data Redis
Issue Links:
- SPR-13409 DefaultDeserializer should use ConfigurableObjectInputStream
Referenced from: pull request #179, and commits spring-projects/spring-boot@d839e1e