Class DatetimeGroovyModule

java.lang.Object
io.micronaut.starter.feature.lang.groovy.module.DatetimeGroovyModule
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenRewriteFeature, GroovyModuleFeature

@Requires(property="micronaut.starter.feature.groovy.datetime.enabled", value="true", defaultValue="true") @Singleton public class DatetimeGroovyModule extends Object implements GroovyModuleFeature, OpenRewriteFeature
Feature that adds Groovy extensions for working with the JSR 310 Date/Time API.
  • Field Details

  • Constructor Details

    • DatetimeGroovyModule

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

      @NonNull public @NonNull 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
    • getRecipes

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