Class ComponentAnnotationMapper

java.lang.Object
io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
io.micronaut.spring.annotation.context.ComponentAnnotationMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper
Direct Known Subclasses:
RepositoryAnnotationMapper, RestControllerAnnotationMapper, ServiceAnnotationMapper

public class ComponentAnnotationMapper extends AbstractSpringAnnotationMapper
Maps @Component to Bean with a DefaultScope of Singleton.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • ComponentAnnotationMapper

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