toolisticon/kotlin-code-generation

Provide SPI for strategy and processor

Closed this issue · 1 comments

The generatorAPI is great for designing code from scratch. But if the overall result of teh generation is fixed (follows a kind of template), you might not want to start all over again.

Strategies can define a general code template that is generated from a given meta-input. Processors allow to hook into the generation process by enriching certain parts.

We had a concept for strategies, processors and SPI (service locators) in avro-kotlin generation already. We should move the general concept as a feature to this core generation lib and use it in other locations.

fixed with #8