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.
    Author:
    Nathan Sweet
    See Also:
    Kryo.register(Class)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends Serializer> value