Interface LanguageSpecificFeature

All Superinterfaces:
io.micronaut.core.naming.Described, Feature, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered
All Known Subinterfaces:
JavaSpecificFeature, KotlinSpecificFeature, KotlinSupportFeature
All Known Implementing Classes:
Config4k, Kapt, KotlinExtensionFunctions, KotlinSymbolProcessing, Ktor, OpenRewrite, ProjectLombok

public interface LanguageSpecificFeature extends Feature
A feature that only works with a specific language.
Since:
2.0.0
Author:
James Kleeh
  • Method Details

    • getRequiredLanguage

      Language getRequiredLanguage()
      Returns:
      The language this feature requires, or empty if the feature can be used with any language.
    • supports

      default boolean supports(Language language)
      Specified by:
      supports in interface Feature
      Parameters:
      language - Language
      Returns:
      Whether the feature supports the programming language