Class LazyAnnotationMapper

java.lang.Object
io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
io.micronaut.spring.annotation.context.LazyAnnotationMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper

public class LazyAnnotationMapper extends AbstractSpringAnnotationMapper
Makes @Lazy(false) become a Context scoped bean.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • LazyAnnotationMapper

      public LazyAnnotationMapper()
  • Method Details

    • getName

      public String getName()
    • mapInternal

      protected List<io.micronaut.core.annotation.AnnotationValue<?>> mapInternal(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Description copied from class: AbstractSpringAnnotationMapper
      Internal map implemenation that subclasses should implement.
      Specified by:
      mapInternal in class AbstractSpringAnnotationMapper
      Parameters:
      annotation - The annotation
      visitorContext - The visitor context
      Returns:
      A list of annotations