toolisticon / kotlin-code-generation

Opinionated setup for kotlin-poet code generator projects
Apache License 2.0
2 stars 0 forks source link

Provide composites for strategy and processor #49

Open jangalinski opened 2 months ago

jangalinski commented 2 months ago

Scenario

Some operations that are declared in strategies and processors are very small and rely on each other. This leads to a lot of classes that have to be registered for service loading although they belong together. To make it easier to implement a certain "flavor" of generation, it would be useful to encapsulate some features in "higher order" strategies and processors.

Wanted Behaviour

Provide abstractions for strategies and processors that return collections of result specs (list of files for example) and work on a collection of classes instead of register everything manually.