Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3818

Annotations for easier extension

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently, there are two ways to extend a Java implementation of a Thrift spec: modify the compiler source code or write classes that wrap the existing Java library. The former requires maintaining a fork of Thrift while the latter doesn't allow meaningful changes to, e.g., struct or service classes.

      I propose modifying the compiler to include additional annotations to Thrift types (ThriftService, ThriftStruct, etc.) This change would allow much easier extension of generated classes through the use of annotation processors. Happy to supply a patch if it's a desirable improvement. Thanks!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdavis Tom Davis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: