Class ObservedAnnotationMapper

java.lang.Object
io.micronaut.micrometer.annotation.processing.ObservedAnnotationMapper
All Implemented Interfaces:
io.micronaut.inject.annotation.AnnotationMapper<io.micrometer.observation.annotation.Observed>, io.micronaut.inject.annotation.TypedAnnotationMapper<io.micrometer.observation.annotation.Observed>

public class ObservedAnnotationMapper extends Object implements io.micronaut.inject.annotation.TypedAnnotationMapper<io.micrometer.observation.annotation.Observed>
Adds interceptor binding to Observed.
Since:
3.4.0
Author:
Nemanja Mikic
  • Constructor Details

    • ObservedAnnotationMapper

      public ObservedAnnotationMapper()
  • Method Details

    • annotationType

      public Class<io.micrometer.observation.annotation.Observed> annotationType()
      Specified by:
      annotationType in interface io.micronaut.inject.annotation.TypedAnnotationMapper<io.micrometer.observation.annotation.Observed>
    • map

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