Skip to content

jte-extension-api

This module defines the interface to add extensions to jte generation. Extensions can generate additional files based on metadata about jte templates.

Writing an Extension

Extension authors must implement the gg.jte.extension.api.JteExtension interface. The implementing class must have a no-argument constructor so that it can be instantiated by name.

Testing

The companion module jte-extension-api-mocks provides mock implementations of the API interfaces to help with writing unit tests.

Usage

The jte Maven and Gradle plugins allow configuring extensions.

Examples