Annotation Type Serializer


  • @Documented
    @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface Serializer
    An annotation that helps in specifying the custom serializer/de-serialization implementation for jersey.

    Once the annotation is specified, a custom jersey provider invokes an instance of the class specified as the value and dispatches all objects that needs to be serialized/de-serialized to handle them as and only when it is responsible for handling those.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Default:
        ""