@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface DefaultSerializer
Kryo.register(Class)
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends SerializerFactory> |
serializerFactory
The factory used to create the serializer.
|
java.lang.Class<? extends Serializer> |
value
The serializer class to serialize the annotated type, which will be created by the
serializerFactory() . |
public abstract java.lang.Class<? extends Serializer> value
serializerFactory()
. Can be
omitted if the serializer factory knows what type of serializer to create.public abstract java.lang.Class<? extends SerializerFactory> serializerFactory
Copyright © 2019. All Rights Reserved.