Class ScalaRepeatableSourceMapper

java.lang.Object
io.micronaut.scala.processing.test.annotation.ScalaRepeatableSourceMapper
All Implemented Interfaces:
io.micronaut.inject.annotation.AnnotationMapper<ScalaRepeatableSource>, io.micronaut.inject.annotation.TypedAnnotationMapper<ScalaRepeatableSource>

public final class ScalaRepeatableSourceMapper extends Object implements io.micronaut.inject.annotation.TypedAnnotationMapper<ScalaRepeatableSource>
Maps ScalaRepeatableSource to one Requires per name it carries.

The output is repeatable, and Scala has no way to write it twice, so this is the only route by which several entries of one annotation reach a definition without an author writing the container.

  • Constructor Details

    • ScalaRepeatableSourceMapper

      public ScalaRepeatableSourceMapper()
  • Method Details

    • map

      public List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<ScalaRepeatableSource> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Specified by:
      map in interface io.micronaut.inject.annotation.AnnotationMapper<ScalaRepeatableSource>
    • annotationType

      public Class<ScalaRepeatableSource> annotationType()
      Specified by:
      annotationType in interface io.micronaut.inject.annotation.TypedAnnotationMapper<ScalaRepeatableSource>