Class ProjectLombok

java.lang.Object
io.micronaut.starter.feature.other.ProjectLombok
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, LanguageSpecificFeature, OpenRewriteFeature

@Requires(property="micronaut.starter.feature.lombok.enabled", value="true", defaultValue="true") @Singleton public class ProjectLombok extends Object implements LanguageSpecificFeature, OpenRewriteFeature
Provides support for Project Lombok in Java projects. This feature integrates Lombok annotations to reduce boilerplate code. It requires Java as the language.
  • Constructor Details

    • ProjectLombok

      public ProjectLombok()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Feature
      The name of the feature. It must be unique.
      Specified by:
      getName in interface Feature
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Returns:
      the name of the feature
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Feature
      Returns:
      The title of the feature
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described
      Specified by:
      getDescription in interface Feature
    • getCategory

      public String getCategory()
      Specified by:
      getCategory in interface Feature
      Returns:
      The Category to which the feature belongs to.
    • getRequiredLanguage

      public Language getRequiredLanguage()
      Specified by:
      getRequiredLanguage in interface LanguageSpecificFeature
      Returns:
      The language this feature requires, or empty if the feature can be used with any language.
    • getRecipes

      public List<String> getRecipes(GeneratorContext generatorContext)
      Specified by:
      getRecipes in interface OpenRewriteFeature