com.alipay.remoting.serialization
Class SerializerManager

java.lang.Object
  extended by com.alipay.remoting.serialization.SerializerManager

public class SerializerManager
extends Object

Manage all serializers. Notice: Serializer is different with Codec. Serializer is mainly used to deserialize bytes to object, or serialize object to bytes. We can use hessian, json, protocol buff etc. Codec mainly used to encode bytes or decode bytes according to the protocol format. We can use ProtocolCodeBasedEncoder or LengthFieldBasedFrameDecoder etc.


Field Summary
static byte Hessian2
           
 
Constructor Summary
SerializerManager()
           
 
Method Summary
static void addSerializer(int idx, Serializer serializer)
           
static Serializer getSerializer(int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Hessian2

public static final byte Hessian2
See Also:
Constant Field Values
Constructor Detail

SerializerManager

public SerializerManager()
Method Detail

getSerializer

public static Serializer getSerializer(int idx)

addSerializer

public static void addSerializer(int idx,
                                 Serializer serializer)


Copyright © 2018. All rights reserved.