Class DefaultProjectGenerator
java.lang.Object
io.micronaut.projectgen.core.generator.DefaultProjectGenerator
- All Implemented Interfaces:
ProjectGenerator
Default implementation of
ProjectGenerator
.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectGenerator
(ContextFactory contextFactory, List<AvailableFeatures> availableFeaturesList) -
Method Summary
Modifier and TypeMethodDescriptioncreateGeneratorContext
(Project project, Options options, ConsoleOutput consoleOutput) void
generate
(Options options, OutputHandler outputHandler, ConsoleOutput consoleOutput) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.projectgen.core.generator.ProjectGenerator
generate
-
Constructor Details
-
DefaultProjectGenerator
public DefaultProjectGenerator(ContextFactory contextFactory, List<AvailableFeatures> availableFeaturesList)
-
-
Method Details
-
generate
public void generate(Options options, OutputHandler outputHandler, ConsoleOutput consoleOutput) throws Exception - Specified by:
generate
in interfaceProjectGenerator
- Throws:
Exception
-
writeTo
- Specified by:
writeTo
in interfaceProjectGenerator
- Parameters:
options
- Options used to generate the applicationoutputFolder
- Path where zip will be written to
-
createGeneratorContext
public GeneratorContext createGeneratorContext(Project project, Options options, ConsoleOutput consoleOutput)
-