Skip to content

DATAREDIS-427 - Allow construction of customized JdkSerializationRedisSerializer. #179

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

Closed
wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Mar 16, 2016

We now allow constructing JdkSerializationRedisSerializer using an own class loader and by specifying custom converters.

Using an own class-loader: new JdkSerializationRedisSerializer(classLoader)

Using own serializers: new JdkSerializationRedisSerializer(new SerializingConverter(), new DeserializingConverter(new DefaultDeserializer(classLoader)))


Related ticket: DATAREDIS-427

mp911de added 2 commits March 16, 2016 10:58
…sSerializer.

We now allow constructing JdkSerializationRedisSerializer using an own class loader and by specifying custom converters.

Using an own class-loader: new JdkSerializationRedisSerializer(classLoader)

Using own converters (Serializer/Deserializer): new JdkSerializationRedisSerializer(new SerializingConverter(), new DeserializingConverter(new DefaultDeserializer(classLoader)))
@mp911de
Copy link
Member Author

mp911de commented Mar 16, 2016

@rwinch Do you want to take also a look on this?

@rwinch
Copy link
Member

rwinch commented Mar 16, 2016

@mp911de Thanks for sending this for my review! Out of curiosity what is the minimum Spring version that is supported?

@mp911de
Copy link
Member Author

mp911de commented Mar 16, 2016

@rwinch You require at least 4.2.1 for this particular feature. With the Hopper release train, we require at least 4.2.

@rwinch
Copy link
Member

rwinch commented Mar 16, 2016

@mp911de Ok I just wanted to make sure you were aware the constructor wasn't added till 4.2.1.

+1 from me

christophstrobl pushed a commit that referenced this pull request Mar 17, 2016
…sSerializer.

We now allow constructing JdkSerializationRedisSerializer using an own class loader and by specifying custom converters.

Using an own class-loader: new JdkSerializationRedisSerializer(classLoader)

Using own converters (Serializer/Deserializer): new JdkSerializationRedisSerializer(new SerializingConverter(), new DeserializingConverter(new DefaultDeserializer(classLoader)))

Original Pull Request: #179
christophstrobl added a commit that referenced this pull request Mar 17, 2016
Use ShadowingClassLoader instead of a self written one.

Original Pull Request: #179
@christophstrobl christophstrobl deleted the issue/DATAREDIS-427 branch March 17, 2016 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants