Class DecisionCodegen
- java.lang.Object
-
- io.automatiko.engine.codegen.AbstractGenerator
-
- io.automatiko.engine.codegen.decision.DecisionCodegen
-
- All Implemented Interfaces:
Generator
public class DecisionCodegen extends AbstractGenerator
-
-
Field Summary
-
Fields inherited from class io.automatiko.engine.codegen.AbstractGenerator
context, projectDirectory
-
-
Constructor Summary
Constructors Constructor Description DecisionCodegen(java.util.List<DMNResource> resources)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GeneratedFile>generate()Returns the collection of all the files that have been generated/compiledjava.util.List<GeneratedFile>getGeneratedFiles()DecisionContainerGeneratormoduleGenerator()static DecisionCodegenofFiles(java.nio.file.Path basePath, java.util.List<java.io.File> files)static DecisionCodegenofJar(java.nio.file.Path... jarPaths)static DecisionCodegenofJar(java.util.List<java.lang.String> dependencies, java.nio.file.Path... jarPaths)static DecisionCodegenofPath(java.nio.file.Path... paths)static DecisionCodegenofPath(java.util.List<java.lang.String> dependencies, java.nio.file.Path... paths)ApplicationSectionsection()Returns the "section" of the Application class corresponding to rules. e.g the processes() method with processes().createMyProcess() etc.voidsetDependencyInjection(DependencyInjectionAnnotator annotator)voidsetPackageName(java.lang.String packageName)voidupdateConfig(ConfigGenerator cfg)Consumes the given ConfigGenerator so that it can enrich it with further, Generator-specific details.DecisionCodegenwithMonitoring(boolean useMonitoring)-
Methods inherited from class io.automatiko.engine.codegen.AbstractGenerator
context, getLabels, isFunctionFlowProject, isFunctionProject, isServiceProject, onClasspath, setContext, setProjectDirectory
-
-
-
-
Constructor Detail
-
DecisionCodegen
public DecisionCodegen(java.util.List<DMNResource> resources)
-
-
Method Detail
-
ofJar
public static DecisionCodegen ofJar(java.nio.file.Path... jarPaths) throws java.io.IOException
- Throws:
java.io.IOException
-
ofJar
public static DecisionCodegen ofJar(java.util.List<java.lang.String> dependencies, java.nio.file.Path... jarPaths) throws java.io.IOException
- Throws:
java.io.IOException
-
ofPath
public static DecisionCodegen ofPath(java.nio.file.Path... paths) throws java.io.IOException
- Throws:
java.io.IOException
-
ofPath
public static DecisionCodegen ofPath(java.util.List<java.lang.String> dependencies, java.nio.file.Path... paths) throws java.io.IOException
- Throws:
java.io.IOException
-
ofFiles
public static DecisionCodegen ofFiles(java.nio.file.Path basePath, java.util.List<java.io.File> files) throws java.io.IOException
- Throws:
java.io.IOException
-
setPackageName
public void setPackageName(java.lang.String packageName)
-
setDependencyInjection
public void setDependencyInjection(DependencyInjectionAnnotator annotator)
-
moduleGenerator
public DecisionContainerGenerator moduleGenerator()
-
generate
public java.util.List<GeneratedFile> generate()
Description copied from interface:GeneratorReturns the collection of all the files that have been generated/compiled
-
updateConfig
public void updateConfig(ConfigGenerator cfg)
Description copied from interface:GeneratorConsumes the given ConfigGenerator so that it can enrich it with further, Generator-specific details. This is automatically called by the ApplicationGenerator.
-
getGeneratedFiles
public java.util.List<GeneratedFile> getGeneratedFiles()
-
section
public ApplicationSection section()
Description copied from interface:GeneratorReturns the "section" of the Application class corresponding to rules. e.g the processes() method with processes().createMyProcess() etc.
-
withMonitoring
public DecisionCodegen withMonitoring(boolean useMonitoring)
-
-