Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1209

Include immutable source templates with Maven plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3
    • java
    • None
    • Allows for the creation of immutable specific record generated classes.

    Description

      It would be nice to have mostly immutable classes generated by the Maven plugin for the cases when people want to use Avro specific records as their first class model objects and want some assurances of immutability. An easy way to accomplish this is with another template set that can be shipped with the compiler artifact. Since the templateDirectory of the plugin is already configurable, then to use this one must only change their local configuration.

      This is somewhat related to AVRO-988, but I have removed the field setters in addition to making the fields private.

      Attachments

        1. AVRO-1209.patch
          20 kB
          Jeff Kolesky
        2. AVRO-988-1209.patch
          16 kB
          Jeff Kolesky
        3. AVRO-988-1209.patch
          16 kB
          Jeff Kolesky
        4. setter-option-for-compiler.patch
          10 kB
          Jeff Kolesky
        5. setter-option-for-compiler.patch
          5 kB
          Jeff Kolesky

        Activity

          People

            jeffkole Jeff Kolesky
            jeffkole Jeff Kolesky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: