Class AbstractFunctionFeature

java.lang.Object
io.micronaut.starter.feature.function.AbstractFunctionFeature
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, FunctionFeature, MicronautRuntimeFeature
Direct Known Subclasses:
AbstractAzureFunction, AbstractGoogleCloudFunction, OracleFunction

public abstract class AbstractFunctionFeature extends Object implements FunctionFeature, MicronautRuntimeFeature
Abstract function implementation.
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • AbstractFunctionFeature

      public AbstractFunctionFeature()
  • Method Details

    • apply

      public void apply(GeneratorContext generatorContext)
      Description copied from interface: Feature
      If this method is called for a given feature that means the feature was explicitly selected, included by default as a result of DefaultFeature.shouldApply(io.micronaut.starter.options.Options, java.util.Set), or added explicitly by another feature through FeatureContext.addFeature(Feature). At this point the feature list is set and cannot change.
      Specified by:
      apply in interface Feature
      Parameters:
      generatorContext - THe generator context
    • javaControllerTemplate

      protected com.fizzed.rocker.RockerModel javaControllerTemplate(Project project, boolean useSerde)
    • kotlinControllerTemplate

      protected com.fizzed.rocker.RockerModel kotlinControllerTemplate(Project project, boolean useSerde)
    • groovyControllerTemplate

      protected com.fizzed.rocker.RockerModel groovyControllerTemplate(Project project, boolean useSerde)
    • applyFunction

      protected void applyFunction(GeneratorContext generatorContext, ApplicationType type)
    • getTestSuffix

      protected String getTestSuffix(ApplicationType type)
    • applyTestTemplate

      protected void applyTestTemplate(GeneratorContext generatorContext, Project project, String name)
    • readmeTemplate

      protected Optional<com.fizzed.rocker.RockerModel> readmeTemplate(GeneratorContext generatorContext, Project project, BuildTool buildTool)
    • getRunCommand

      protected abstract String getRunCommand(BuildTool buildTool)
    • getBuildCommand

      protected abstract String getBuildCommand(BuildTool buildTool)
    • javaJUnitTemplate

      protected abstract com.fizzed.rocker.RockerModel javaJUnitTemplate(Project project)
    • kotlinJUnitTemplate

      protected abstract com.fizzed.rocker.RockerModel kotlinJUnitTemplate(Project project)
    • groovyJUnitTemplate

      protected abstract com.fizzed.rocker.RockerModel groovyJUnitTemplate(Project project)
    • koTestTemplate

      protected abstract com.fizzed.rocker.RockerModel koTestTemplate(Project project)
    • spockTemplate

      public abstract com.fizzed.rocker.RockerModel spockTemplate(Project project)