Class SecurityAnnotations

java.lang.Object
io.micronaut.starter.feature.security.SecurityAnnotations
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenRewriteFeature, MicronautServerDependent

@Requires(property="micronaut.starter.feature.security.annotations.enabled", value="true", defaultValue="true") @Singleton public class SecurityAnnotations extends Object implements OpenRewriteFeature, MicronautServerDependent
Provides support for security annotations in Micronaut applications.

This feature is server-dependent and typically not visible to end users.

  • Constructor Details

    • SecurityAnnotations

      public SecurityAnnotations()
  • 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
    • isVisible

      public boolean isVisible()
      Description copied from interface: Feature
      Some features should not be visible to the user because they are a common parent of other selectable features, or they should always be applied, or any other reason.
      Specified by:
      isVisible in interface Feature
      Returns:
      True if the feature should be able to be selected by the user
    • getRecipes

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