Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The wrapper code injection is done using the open source template engine FreeMarker. A wrapper code snippet is basically a Macro definition of FreeMarker. The Macro is called when the corresponding annotation is found in the model file. The file extension of FreeMarker templates is .ftl.

(Image showing snippet definition, template file, annotated model file, template file with macro calls, output file)

There is an Eclipse plugin for FreeMarker as part of the JBoss Tools Project. It can be installed using the Eclipse Marketplace.

...