Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow injecting deserializer for JdkSerializationRedisSerializer [DATAREDIS-427] #1003

Closed
spring-projects-issues opened this issue Aug 31, 2015 · 0 comments
Assignees
Labels
in: core Issues in core support type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants