Generator interfaces that plugins implement to add new generators.
Create a new Generator
- Create a new module, and set
GeneratorAPI as a dependency.
- Create a new class that implements
Generator. Because
Generator interface extends LongTask, add
LongTaskAPI as another of your module dependency.
- Add @ServiceProvider annotation to your class to declare
you are implementing a Generator service. Put
Generator.class
as the annotation service parameter.
- Implement
GeneratorUI if your generator needs
a settings panel and return it from getUI()
method.