Package io.micronaut.starter.api.create
Class AbstractCreateController
java.lang.Object
io.micronaut.starter.api.create.AbstractCreateController
- Direct Known Subclasses:
PreviewController
,ZipCreateController
Abstract implementation of a create controller.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCreateController
(ProjectGenerator projectGenerator, io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Abstract implementation for create controllers. -
Method Summary
Modifier and TypeMethodDescriptioncreateProjectGeneratorContext
(ApplicationType type, @Pattern(regexp="[\\w\\d-_\\.]+") String name, @Nullable List<String> features, @Nullable BuildTool buildTool, @Nullable TestFramework testFramework, @Nullable Language lang, @Nullable JdkVersion javaVersion, @Nullable String userAgent) protected OperatingSystem
getOperatingSystem
(String userAgent)
-
Field Details
-
projectGenerator
-
-
Constructor Details
-
AbstractCreateController
protected AbstractCreateController(ProjectGenerator projectGenerator, io.micronaut.context.event.ApplicationEventPublisher eventPublisher) Abstract implementation for create controllers.- Parameters:
projectGenerator
- The project generatoreventPublisher
- The event publisher
-
-
Method Details
-
createProjectGeneratorContext
public GeneratorContext createProjectGeneratorContext(ApplicationType type, @Pattern(regexp="[\\w\\d-_\\.]+") @Pattern(regexp="[\\w\\d-_\\.]+") String name, @Nullable @Nullable List<String> features, @Nullable @Nullable BuildTool buildTool, @Nullable @Nullable TestFramework testFramework, @Nullable @Nullable Language lang, @Nullable @Nullable JdkVersion javaVersion, @Nullable @Header("User-Agent") @Nullable String userAgent) -
getOperatingSystem
-