Package io.automatiko.engine.codegen
Interface Generator
-
- All Known Implementing Classes:
AbstractGenerator,DecisionCodegen,PersistenceGenerator,ProcessCodegen
public interface GeneratorA code generator for a part of the platform, e.g. rules, processes, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GeneratorContextcontext()java.util.Collection<GeneratedFile>generate()Returns the collection of all the files that have been generated/compileddefault java.util.Map<java.lang.String,java.lang.String>getLabels()ApplicationSectionsection()Returns the "section" of the Application class corresponding to rules. e.g the processes() method with processes().createMyProcess() etc.voidsetContext(GeneratorContext context)voidsetDependencyInjection(DependencyInjectionAnnotator annotator)voidsetPackageName(java.lang.String packageName)voidsetProjectDirectory(java.nio.file.Path projectDirectory)voidupdateConfig(ConfigGenerator cfg)Consumes the given ConfigGenerator so that it can enrich it with further, Generator-specific details.
-
-
-
Method Detail
-
section
ApplicationSection section()
Returns the "section" of the Application class corresponding to rules. e.g the processes() method with processes().createMyProcess() etc.
-
generate
java.util.Collection<GeneratedFile> generate()
Returns the collection of all the files that have been generated/compiled
-
updateConfig
void updateConfig(ConfigGenerator cfg)
Consumes the given ConfigGenerator so that it can enrich it with further, Generator-specific details. This is automatically called by the ApplicationGenerator.
-
setPackageName
void setPackageName(java.lang.String packageName)
-
setDependencyInjection
void setDependencyInjection(DependencyInjectionAnnotator annotator)
-
setProjectDirectory
void setProjectDirectory(java.nio.file.Path projectDirectory)
-
setContext
void setContext(GeneratorContext context)
-
context
GeneratorContext context()
-
getLabels
default java.util.Map<java.lang.String,java.lang.String> getLabels()
-
-