Class CGLibProxySerializer
- java.lang.Object
-
- com.esotericsoftware.kryo.Serializer<Object>
-
- de.javakaffee.kryoserializers.cglib.CGLibProxySerializer
-
public class CGLibProxySerializer extends com.esotericsoftware.kryo.Serializer<Object>
A kryo serializer for cglib proxies. It needs to be registered forCGLibProxySerializer.CGLibProxyMarkerclass. When the serializer for a certain class is requested (viaKryo.getDefaultSerializer(Class))canSerialize(Class)has to be checked with the provided class to see if aCGLibProxySerializershould be returned.- Author:
- Martin Grotzke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCGLibProxySerializer.CGLibProxyMarkerThis class is used as a marker class - written to the class attribute on serialization and checked on deserialization (viacanSerialize(Class)).
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_NAMING_MARKER
-
Constructor Summary
Constructors Constructor Description CGLibProxySerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancanSerialize(Class<?> cls)Objectread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<? extends Object> type)voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Object obj)
-
-
-
Field Detail
-
DEFAULT_NAMING_MARKER
public static final String DEFAULT_NAMING_MARKER
- See Also:
- Constant Field Values
-
-