Class AbstractSpringAnnotationMapper

java.lang.Object
io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper
Direct Known Subclasses:
AsyncAnnotationMapper, AutowiredAnnotationMapper, BeanAnnotationMapper, CacheableAnnotationMapper, ComponentAnnotationMapper, ConditionalOnBeanAnnotationMapper, ConditionalOnNotWebApplicationAnnotationMapper, ConditionalOnPropertyAnnotationMapper, ConditionalOnSingleCandidateAnnotationMapper, ConditionalOnWebApplicationAnnotationMapper, ConfigurationAnnotationMapper, ConfigurationPropertiesAnnotationMapper, EndpointAnnotationMapper, EventListenerAnnotationMapper, ExceptionHandlerAnnotationMapper, LazyAnnotationMapper, PrimaryAnnotationMapper, ProfileAnnotationMapper, QualifierAnnotationMapper, ReadOperationAnnotationMapper, RequestBodyAnnotationMapping, ResponseStatusAnnotationMapper, ScheduledAnnotationMapper, ValidatedAnnotationMapper, ValueAnnotationMapper, WebBindAnnotationMapper

public abstract class AbstractSpringAnnotationMapper extends Object implements io.micronaut.inject.annotation.NamedAnnotationMapper
Abstract mapper for Spring annotations.
Since:
1.0
Author:
graemerocher
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final List<io.micronaut.core.annotation.AnnotationValue<?>>
    map(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
     
    protected abstract @NonNull List<io.micronaut.core.annotation.AnnotationValue<?>>
    mapInternal(@NonNull io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, @NonNull io.micronaut.inject.visitor.VisitorContext visitorContext)
    Internal map implemenation that subclasses should implement.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.naming.Named

    getName
  • Constructor Details

    • AbstractSpringAnnotationMapper

      public AbstractSpringAnnotationMapper()
  • Method Details

    • map

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

      @NonNull protected abstract @NonNull List<io.micronaut.core.annotation.AnnotationValue<?>> mapInternal(@NonNull @NonNull io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, @NonNull @NonNull io.micronaut.inject.visitor.VisitorContext visitorContext)
      Internal map implemenation that subclasses should implement.
      Parameters:
      annotation - The annotation
      visitorContext - The visitor context
      Returns:
      A list of annotations