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 yaml configuration of TypedJsonJacksonCodec #3960

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions redisson/src/main/java/org/redisson/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.redisson;/**
* @author David (_Esel)
*/public class Main {
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.redisson.codec;

import com.fasterxml.jackson.annotation.JsonCreator;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand Down Expand Up @@ -82,6 +83,7 @@ public Object decode(ByteBuf buf, State state) throws IOException {
private final Class<?> mapKeyClass;
private final Class<?> mapValueClass;

@JsonCreator
public TypedJsonJacksonCodec(Class<?> valueClass) {
this(valueClass, new ObjectMapper());
}
Expand Down