use of io.micronaut.starter.feature.function.DocumentationLink in project micronaut-starter by micronaut-projects.
the class AwsLambda method apply.
@Override
public void apply(GeneratorContext generatorContext) {
Project project = generatorContext.getProject();
if (shouldGenerateSources(generatorContext)) {
addBook(generatorContext, project);
addBookSaved(generatorContext, project);
ApplicationType applicationType = generatorContext.getApplicationType();
if (applicationType == DEFAULT || applicationType == FUNCTION) {
if (applicationType == DEFAULT) {
addBookController(generatorContext, project);
addBookControllerTest(generatorContext, project);
} else {
addRequestHandler(generatorContext, project);
addTest(generatorContext, project);
}
DocumentationLink link = new DocumentationLink(LINK_TITLE, LINK_URL);
generatorContext.addHelpTemplate(new RockerWritable(readmeRockerModel(this, generatorContext, link)));
}
}
}
Aggregations