Class CacheableAnnotationMapper

java.lang.Object
io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
io.micronaut.spring.annotation.cache.CacheableAnnotationMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper
Direct Known Subclasses:
CacheEvictAnnotationMapper, CachePutAnnotationMapper

public class CacheableAnnotationMapper extends AbstractSpringAnnotationMapper
Maps the Spring cache annotations.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • CacheableAnnotationMapper

      public CacheableAnnotationMapper()
  • Method Details

    • 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
    • getName

      public String getName()
    • buildAnnotation

      @NonNull protected @NonNull io.micronaut.core.annotation.AnnotationValueBuilder<? extends Annotation> buildAnnotation()
      Builds the target annotation.
      Returns:
      The annotation builder