Annotation Type DefaultSerializer


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface DefaultSerializer
    Sets the default serializer to use for the annotated class. The specified Serializer class must have a constructor taking a Kryo instance and a class, a Kryo instance, a class, or no arguments.
    See Also:
    Kryo.register(Class)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends Serializer> value  
    • Element Detail

      • value

        java.lang.Class<? extends Serializer> value