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

Allow putting additional objects into the Velocity template

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.1
    • java
    • None

    Description

      This JIRA proposes the ability to inject custom POJOs into the Velocity template.

      It is possible to override template directory configuration and thus make the compiler to generate customized code. However, customization possibilities are constrained to Velocity Template Language and objects injected into the template's context.

      The ability of injecting custom objects into the template's context would leverage customization possibilities to the whole Java language itself. The patch I'm about to attach modifies both compiler and maven-plugin in order to provide client applications with the ability of easy injecting custom Java objects into the Velocity templates' context.

      Attachments

        1. AVRO-1762.patch
          5 kB
          Matheus Santana

        Activity

          People

            redsk Nicola Bova
            embs Matheus Santana
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: