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<java.lang.annotation.Annotation>
,io.micronaut.inject.annotation.NamedAnnotationMapper
- Direct Known Subclasses:
CacheEvictAnnotationMapper
,CachePutAnnotationMapper
public class CacheableAnnotationMapper extends AbstractSpringAnnotationMapper
Maps the Spring cache annotations.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description CacheableAnnotationMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.micronaut.core.annotation.AnnotationValueBuilder<? extends java.lang.annotation.Annotation>
buildAnnotation()
Builds the target annotation.java.lang.String
getName()
protected java.util.List<io.micronaut.core.annotation.AnnotationValue<?>>
mapInternal(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
Internal map implemenation that subclasses should implement.-
Methods inherited from class io.micronaut.spring.annotation.AbstractSpringAnnotationMapper
map
-
-
-
-
Method Detail
-
mapInternal
protected java.util.List<io.micronaut.core.annotation.AnnotationValue<?>> mapInternal(io.micronaut.core.annotation.AnnotationValue<java.lang.annotation.Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
Description copied from class:AbstractSpringAnnotationMapper
Internal map implemenation that subclasses should implement.- Specified by:
mapInternal
in classAbstractSpringAnnotationMapper
- Parameters:
annotation
- The annotationvisitorContext
- The visitor context- Returns:
- A list of annotations
-
getName
public java.lang.String getName()
-
buildAnnotation
@NonNull protected io.micronaut.core.annotation.AnnotationValueBuilder<? extends java.lang.annotation.Annotation> buildAnnotation()
Builds the target annotation.- Returns:
- The annotation builder
-
-